#6B24A6#6B24A6

#6B24A6 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.9% C 0.193 H 304.0°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#6B24A6
RGBrgb(107, 36, 166)
HSLhsl(273, 64%, 40%)
HSVhsv(273, 78%, 65%)
CMYKcmyk(35.5%, 78.3%, 0%, 34.9%)
CIE-LABlab(32.13, 53.93, -56.25)
CIE-LCHlch(32.13, 77.93, 313.79°)
OKLaboklab(43.93% 0.1082 -0.1604)
OKLCHoklch(43.93% 0.193 304)
XYZxyz(13.5756, 7.1408, 36.7321)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B24A6 #5FA624
analogous
#2A24A6 #6B24A6 #A624A0
triadic
#6B24A6 #A66B24 #24A66B
tetradic
#6B24A6 #A62A24 #5FA624 #24A0A6
square
#6B24A6 #A62A24 #5FA624 #24A0A6
split-complementary
#6B24A6 #A0A624 #24A62A
monochromatic
#2A0E41 #4B1974 #6B24A6 #8B34D3 #A866DE

Accessibility & contrast

On white

8.65
#6B24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6B24A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B24A6
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B24A6#FFFFFF#000000##FFFFFF
##6B24A61.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#004BA3
Tritanopia (blue-blind)
#5F4664
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6b24a6;
/* rgb */ color: rgb(107, 36, 166);
/* oklch */ color: oklch(43.9% 0.193 304.0);
Tailwind
colors: {
  custom: {
    50: '#9b67c1',
    500: '#6b24a6',
    950: '#000000',
  },
}
SCSS
$custom: #6b24a6;
$custom-light: #9b67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b24a6",
  "rgb": {
    "r": 107,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 272.769,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43934,
    "c": 0.19345,
    "h": 304
  },
  "luminance": 0.07141
}

Semantic roles & 50–950 ramp

primary
#6B24A6
secondary
#8EC462
accent
#E7408C
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B24A6

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

Preview Lab → · Contrast checker → · Palette generator →

#6B24A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva