#6C24B2#6C24B2

#6C24B2 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.206 H 301.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#6C24B2
RGBrgb(108, 36, 178)
HSLhsl(270, 66%, 42%)
HSVhsv(270, 80%, 70%)
CMYKcmyk(39.3%, 79.8%, 0%, 30.2%)
CIE-LABlab(33.27, 56.91, -61.56)
CIE-LCHlch(33.27, 83.83, 312.75°)
OKLaboklab(45.08% 0.1064 -0.1759)
OKLCHoklch(45.08% 0.206 301.2)
XYZxyz(14.8491, 7.6641, 42.8079)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C24B2 #6AB224
analogous
#2524B2 #6C24B2 #B224B1
triadic
#6C24B2 #B26C24 #24B26C
tetradic
#6C24B2 #B22524 #6AB224 #24B1B2
square
#6C24B2 #B22524 #6AB224 #24B1B2
split-complementary
#6C24B2 #B1B224 #24B225
monochromatic
#2E0F4C #4D1A7F #6C24B2 #8B3CD8 #A96FE2

Accessibility & contrast

On white

8.29
#6C24B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6C24B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C24B2
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C24B2#FFFFFF#000000##FFFFFF
##6C24B21.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#5C4B6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c24b2;
/* rgb */ color: rgb(108, 36, 178);
/* oklch */ color: oklch(45.1% 0.206 301.2);
Tailwind
colors: {
  custom: {
    50: '#9d68ca',
    500: '#6c24b2',
    950: '#000000',
  },
}
SCSS
$custom: #6c24b2;
$custom-light: #9d68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6c24b2",
  "rgb": {
    "r": 108,
    "g": 36,
    "b": 178
  },
  "hsl": {
    "h": 270.423,
    "s": 66.355,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45078,
    "c": 0.20559,
    "h": 301.2
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#6C24B2
secondary
#98C869
accent
#E93F93
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C24B2

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

Preview Lab → · Contrast checker → · Palette generator →

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