#6128A8#6128A8

#6128A8 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.190 H 298.2°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#6128A8
RGBrgb(97, 40, 168)
HSLhsl(267, 62%, 41%)
HSVhsv(267, 76%, 66%)
CMYKcmyk(42.3%, 76.2%, 0%, 34.1%)
CIE-LABlab(31.55, 51.05, -58.46)
CIE-LCHlch(31.55, 77.61, 311.13°)
OKLaboklab(43.29% 0.0895 -0.1672)
OKLCHoklch(43.29% 0.19 298.2)
XYZxyz(12.7546, 6.8859, 37.6953)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128A8 #6FA828
analogous
#282FA8 #6128A8 #A128A8
triadic
#6128A8 #A86128 #28A861
tetradic
#6128A8 #A8282F #6FA828 #28A8A1
square
#6128A8 #A8282F #6FA828 #28A8A1
split-complementary
#6128A8 #A8A128 #2FA828
monochromatic
#281045 #441C77 #6128A8 #7E3DD1 #9F6EDC

Accessibility & contrast

On white

8.83
#6128A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#6128A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6128A8
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6128A8#FFFFFF#000000##FFFFFF
##6128A81.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#4F4A66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6128a8;
/* rgb */ color: rgb(97, 40, 168);
/* oklch */ color: oklch(43.3% 0.190 298.2);
Tailwind
colors: {
  custom: {
    50: '#9568c3',
    500: '#6128a8',
    950: '#000000',
  },
}
SCSS
$custom: #6128a8;
$custom-light: #9568c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6128a8",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 266.719,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43292,
    "c": 0.18968,
    "h": 298.2
  },
  "luminance": 0.06886
}

Semantic roles & 50–950 ramp

primary
#6128A8
secondary
#9BC369
accent
#E5439D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #6128A8

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#6128A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva