#6128AC#6128AC

#6128AC is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.6% C 0.194 H 297.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#6128AC
RGBrgb(97, 40, 172)
HSLhsl(266, 62%, 42%)
HSVhsv(266, 77%, 67%)
CMYKcmyk(43.6%, 76.7%, 0%, 32.5%)
CIE-LABlab(31.89, 52.06, -60.29)
CIE-LCHlch(31.89, 79.66, 310.81°)
OKLaboklab(43.64% 0.0885 -0.1726)
OKLCHoklch(43.64% 0.194 297.1)
XYZxyz(13.1330, 7.0373, 39.6881)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6128AC #73AC28
analogous
#2831AC #6128AC #A328AC
triadic
#6128AC #AC6128 #28AC61
tetradic
#6128AC #AC2831 #73AC28 #28ACA3
square
#6128AC #AC2831 #73AC28 #28ACA3
split-complementary
#6128AC #ACA328 #31AC28
monochromatic
#291149 #451C7A #6128AC #7F3FD2 #A071DE

Accessibility & contrast

On white

8.72
#6128AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6128AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6128AC
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6128AC#FFFFFF#000000##FFFFFF
##6128AC1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#4D4B69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6128ac;
/* rgb */ color: rgb(97, 40, 172);
/* oklch */ color: oklch(43.6% 0.194 297.1);
Tailwind
colors: {
  custom: {
    50: '#9568c6',
    500: '#6128ac',
    950: '#000000',
  },
}
SCSS
$custom: #6128ac;
$custom-light: #9568c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6128ac",
  "rgb": {
    "r": 97,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 265.909,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43641,
    "c": 0.19398,
    "h": 297.1
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

primary
#6128AC
secondary
#9EC56B
accent
#E5429F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6128AC

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

Preview Lab → · Contrast checker → · Palette generator →

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