#6B238A#6B238A

#6B238A is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.6% C 0.167 H 313.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#6B238A
RGBrgb(107, 35, 138)
HSLhsl(282, 60%, 34%)
HSVhsv(282, 75%, 54%)
CMYKcmyk(22.5%, 74.6%, 0%, 45.9%)
CIE-LABlab(29.82, 48.00, -42.87)
CIE-LCHlch(29.82, 64.36, 318.23°)
OKLaboklab(41.63% 0.1148 -0.121)
OKLCHoklch(41.63% 0.167 313.5)
XYZxyz(11.2511, 6.1632, 24.6368)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B238A #428A23
analogous
#38238A #6B238A #8A2376
triadic
#6B238A #8A6B23 #238A6B
tetradic
#6B238A #8A3823 #428A23 #23768A
square
#6B238A #8A3823 #428A23 #23768A
split-complementary
#6B238A #768A23 #238A38
monochromatic
#1F0A28 #451759 #6B238A #912FBB #AD54D4

Accessibility & contrast

On white

9.41
#6B238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6B238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B238A
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B238A#FFFFFF#000000##FFFFFF
##6B238A1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#1A4888
Tritanopia (blue-blind)
#683A54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b238a;
/* rgb */ color: rgb(107, 35, 138);
/* oklch */ color: oklch(41.6% 0.167 313.5);
Tailwind
colors: {
  custom: {
    50: '#9965ad',
    500: '#6b238a',
    950: '#000000',
  },
}
SCSS
$custom: #6b238a;
$custom-light: #9965ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6b238a",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 281.942,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4163,
    "c": 0.1668,
    "h": 313.5
  },
  "luminance": 0.06163
}

Semantic roles & 50–950 ramp

primary
#6B238A
secondary
#70B751
accent
#E34575
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B238A

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

Preview Lab → · Contrast checker → · Palette generator →

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