#6C24A2#6C24A2

#6C24A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.190 H 305.7°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#6C24A2
RGBrgb(108, 36, 162)
HSLhsl(274, 64%, 39%)
HSVhsv(274, 78%, 64%)
CMYKcmyk(33.3%, 77.8%, 0%, 36.5%)
CIE-LABlab(31.94, 53.17, -54.13)
CIE-LCHlch(31.94, 75.88, 314.49°)
OKLaboklab(43.73% 0.1106 -0.1541)
OKLCHoklch(43.73% 0.19 305.7)
XYZxyz(13.3354, 7.0586, 34.8353)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C24A2 #5AA224
analogous
#2D24A2 #6C24A2 #A22499
triadic
#6C24A2 #A26C24 #24A26C
tetradic
#6C24A2 #A22D24 #5AA224 #2499A2
square
#6C24A2 #A22D24 #5AA224 #2499A2
split-complementary
#6C24A2 #99A224 #24A22D
monochromatic
#290E3E #4B1970 #6C24A2 #8D32D1 #A964DD

Accessibility & contrast

On white

8.71
#6C24A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6C24A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C24A2
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C24A2#FFFFFF#000000##FFFFFF
##6C24A21.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#624462
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6c24a2;
/* rgb */ color: rgb(108, 36, 162);
/* oklch */ color: oklch(43.7% 0.190 305.7);
Tailwind
colors: {
  custom: {
    50: '#9b67be',
    500: '#6c24a2',
    950: '#000000',
  },
}
SCSS
$custom: #6c24a2;
$custom-light: #9b67be;
$custom-dark: #000000;
JSON
{
  "hex": "#6c24a2",
  "rgb": {
    "r": 108,
    "g": 36,
    "b": 162
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43733,
    "c": 0.18969,
    "h": 305.7
  },
  "luminance": 0.07059
}

Semantic roles & 50–950 ramp

primary
#6C24A2
secondary
#8AC260
accent
#E74188
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C24A2

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

Preview Lab → · Contrast checker → · Palette generator →

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