#6C238B#6C238B

#6C238B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.8% C 0.168 H 313.6°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#6C238B
RGBrgb(108, 35, 139)
HSLhsl(282, 60%, 34%)
HSVhsv(282, 75%, 55%)
CMYKcmyk(22.3%, 74.8%, 0%, 45.5%)
CIE-LABlab(30.05, 48.43, -43.12)
CIE-LCHlch(30.05, 64.84, 318.32°)
OKLaboklab(41.85% 0.116 -0.1217)
OKLCHoklch(41.85% 0.168 313.6)
XYZxyz(11.4448, 6.2547, 25.0255)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C238B #428B23
analogous
#38238B #6C238B #8B2376
triadic
#6C238B #8B6C23 #238B6C
tetradic
#6C238B #8B3823 #428B23 #23768B
square
#6C238B #8B3823 #428B23 #23768B
split-complementary
#6C238B #768B23 #238B38
monochromatic
#200A29 #46175A #6C238B #922FBC #AE54D4

Accessibility & contrast

On white

9.33
#6C238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6C238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C238B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C238B#FFFFFF#000000##FFFFFF
##6C238B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#1B4889
Tritanopia (blue-blind)
#693A55
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c238b;
/* rgb */ color: rgb(108, 35, 139);
/* oklch */ color: oklch(41.8% 0.168 313.6);
Tailwind
colors: {
  custom: {
    50: '#9a66ad',
    500: '#6c238b',
    950: '#000000',
  },
}
SCSS
$custom: #6c238b;
$custom-light: #9a66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6c238b",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 282.115,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41845,
    "c": 0.16814,
    "h": 313.6
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#6C238B
secondary
#70B852
accent
#E34574
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6C238B

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

Preview Lab → · Contrast checker → · Palette generator →

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