#6F238B#6F238B

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

Color values

HEX#6F238B
RGBrgb(111, 35, 139)
HSLhsl(284, 60%, 34%)
HSVhsv(284, 75%, 55%)
CMYKcmyk(20.1%, 74.8%, 0%, 45.5%)
CIE-LABlab(30.51, 49.07, -42.35)
CIE-LCHlch(30.51, 64.81, 319.20°)
OKLaboklab(42.27% 0.12 -0.1193)
OKLCHoklch(42.27% 0.169 315.2)
XYZxyz(11.8160, 6.4461, 25.0429)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F238B #3F8B23
analogous
#3B238B #6F238B #8B2373
triadic
#6F238B #8B6F23 #238B6F
tetradic
#6F238B #8B3B23 #3F8B23 #23738B
square
#6F238B #8B3B23 #3F8B23 #23738B
split-complementary
#6F238B #738B23 #238B3B
monochromatic
#210A29 #48175A #6F238B #962FBC #B254D4

Accessibility & contrast

On white

9.17
#6F238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6F238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F238B
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F238B#FFFFFF#000000##FFFFFF
##6F238B1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#1F4A89
Tritanopia (blue-blind)
#6D3955
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6f238b;
/* rgb */ color: rgb(111, 35, 139);
/* oklch */ color: oklch(42.3% 0.169 315.2);
Tailwind
colors: {
  custom: {
    50: '#9c66ad',
    500: '#6f238b',
    950: '#000000',
  },
}
SCSS
$custom: #6f238b;
$custom-light: #9c66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6f238b",
  "rgb": {
    "r": 111,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 283.846,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4227,
    "c": 0.16924,
    "h": 315.2
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

primary
#6F238B
secondary
#6DB852
accent
#E3456F
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0610
muted
#7E7A7F

Preview Lab

Preview with #6F238B

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

Preview Lab → · Contrast checker → · Palette generator →

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