#6A238B#6A238B

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

Color values

HEX#6A238B
RGBrgb(106, 35, 139)
HSLhsl(281, 60%, 34%)
HSVhsv(281, 75%, 55%)
CMYKcmyk(23.7%, 74.8%, 0%, 45.5%)
CIE-LABlab(29.74, 48.01, -43.63)
CIE-LCHlch(29.74, 64.87, 317.73°)
OKLaboklab(41.56% 0.1133 -0.1233)
OKLCHoklch(41.56% 0.167 312.6)
XYZxyz(11.2042, 6.1306, 25.0142)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A238B #448B23
analogous
#36238B #6A238B #8B2378
triadic
#6A238B #8B6A23 #238B6A
tetradic
#6A238B #8B3623 #448B23 #23788B
square
#6A238B #8B3623 #448B23 #23788B
split-complementary
#6A238B #788B23 #238B36
monochromatic
#1F0A29 #45175A #6A238B #8F2FBC #AC54D4

Accessibility & contrast

On white

9.43
#6A238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A238B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A238B#FFFFFF#000000##FFFFFF
##6A238B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a238b;
/* rgb */ color: rgb(106, 35, 139);
/* oklch */ color: oklch(41.6% 0.167 312.6);
Tailwind
colors: {
  custom: {
    50: '#9865ad',
    500: '#6a238b',
    950: '#000000',
  },
}
SCSS
$custom: #6a238b;
$custom-light: #9865ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a238b",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 280.962,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41564,
    "c": 0.16743,
    "h": 312.6
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#6A238B
secondary
#72B852
accent
#E34577
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A238B

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

Preview Lab → · Contrast checker → · Palette generator →

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