#6B238B#6B238B

#6B238B is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.168 H 313.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#6B238B
RGBrgb(107, 35, 139)
HSLhsl(282, 60%, 34%)
HSVhsv(282, 75%, 55%)
CMYKcmyk(23%, 74.8%, 0%, 45.5%)
CIE-LABlab(29.89, 48.22, -43.38)
CIE-LCHlch(29.89, 64.86, 318.03°)
OKLaboklab(41.7% 0.1146 -0.1225)
OKLCHoklch(41.7% 0.168 313.1)
XYZxyz(11.3238, 6.1923, 25.0198)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B238B #438B23
analogous
#37238B #6B238B #8B2377
triadic
#6B238B #8B6B23 #238B6B
tetradic
#6B238B #8B3723 #438B23 #23778B
square
#6B238B #8B3723 #438B23 #23778B
split-complementary
#6B238B #778B23 #238B37
monochromatic
#200A29 #45175A #6B238B #912FBC #AD54D4

Accessibility & contrast

On white

9.38
#6B238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6B238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B238B
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B238B#FFFFFF#000000##FFFFFF
##6B238B1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#194889
Tritanopia (blue-blind)
#683A55
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b238b;
/* rgb */ color: rgb(107, 35, 139);
/* oklch */ color: oklch(41.7% 0.168 313.1);
Tailwind
colors: {
  custom: {
    50: '#9965ad',
    500: '#6b238b',
    950: '#000000',
  },
}
SCSS
$custom: #6b238b;
$custom-light: #9965ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6b238b",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 281.538,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41704,
    "c": 0.16778,
    "h": 313.1
  },
  "luminance": 0.06192
}

Semantic roles & 50–950 ramp

primary
#6B238B
secondary
#71B852
accent
#E34576
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B238B

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

Preview Lab → · Contrast checker → · Palette generator →

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