#6B238D#6B238D

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

Color values

HEX#6B238D
RGBrgb(107, 35, 141)
HSLhsl(281, 60%, 35%)
HSVhsv(281, 75%, 55%)
CMYKcmyk(24.1%, 75.2%, 0%, 44.7%)
CIE-LABlab(30.04, 48.65, -44.38)
CIE-LCHlch(30.04, 65.85, 317.63°)
OKLaboklab(41.85% 0.1143 -0.1255)
OKLCHoklch(41.85% 0.17 312.3)
XYZxyz(11.4713, 6.2513, 25.7965)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B238D #458D23
analogous
#36238D #6B238D #8D237A
triadic
#6B238D #8D6B23 #238D6B
tetradic
#6B238D #8D3623 #458D23 #237A8D
square
#6B238D #8D3623 #458D23 #237A8D
split-complementary
#6B238D #7A8D23 #238D36
monochromatic
#210B2B #46175C #6B238D #902FBE #AC55D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B238D#FFFFFF#000000##FFFFFF
##6B238D1.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)
#004390
Deuteranopia (green-blind)
#15488B
Tritanopia (blue-blind)
#673B56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b238d;
/* rgb */ color: rgb(107, 35, 141);
/* oklch */ color: oklch(41.9% 0.170 312.3);
Tailwind
colors: {
  custom: {
    50: '#9965af',
    500: '#6b238d',
    950: '#000000',
  },
}
SCSS
$custom: #6b238d;
$custom-light: #9965af;
$custom-dark: #000000;
JSON
{
  "hex": "#6b238d",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 280.755,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41853,
    "c": 0.16975,
    "h": 312.3
  },
  "luminance": 0.06251
}

Semantic roles & 50–950 ramp

primary
#6B238D
secondary
#74B953
accent
#E34477
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B238D

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

Preview Lab → · Contrast checker → · Palette generator →

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