#6E238B#6E238B

#6E238B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.169 H 314.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#6E238B
RGBrgb(110, 35, 139)
HSLhsl(283, 60%, 34%)
HSVhsv(283, 75%, 55%)
CMYKcmyk(20.9%, 74.8%, 0%, 45.5%)
CIE-LABlab(30.36, 48.85, -42.61)
CIE-LCHlch(30.36, 64.82, 318.91°)
OKLaboklab(42.13% 0.1187 -0.1201)
OKLCHoklch(42.13% 0.169 314.6)
XYZxyz(11.6909, 6.3816, 25.0370)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E238B #408B23
analogous
#3A238B #6E238B #8B2374
triadic
#6E238B #8B6E23 #238B6E
tetradic
#6E238B #8B3A23 #408B23 #23748B
square
#6E238B #8B3A23 #408B23 #23748B
split-complementary
#6E238B #748B23 #238B3A
monochromatic
#210A29 #47175A #6E238B #952FBC #B054D4

Accessibility & contrast

On white

9.23
#6E238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6E238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E238B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E238B#FFFFFF#000000##FFFFFF
##6E238B1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#1E4989
Tritanopia (blue-blind)
#6B3955
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6e238b;
/* rgb */ color: rgb(110, 35, 139);
/* oklch */ color: oklch(42.1% 0.169 314.6);
Tailwind
colors: {
  custom: {
    50: '#9b66ad',
    500: '#6e238b',
    950: '#000000',
  },
}
SCSS
$custom: #6e238b;
$custom-light: #9b66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6e238b",
  "rgb": {
    "r": 110,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 283.269,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42128,
    "c": 0.16887,
    "h": 314.6
  },
  "luminance": 0.06381
}

Semantic roles & 50–950 ramp

primary
#6E238B
secondary
#6EB852
accent
#E34571
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0610
muted
#7E7A7F

Preview Lab

Preview with #6E238B

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

Preview Lab → · Contrast checker → · Palette generator →

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