#6C238A#6C238A

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

Color values

HEX#6C238A
RGBrgb(108, 35, 138)
HSLhsl(283, 60%, 34%)
HSVhsv(283, 75%, 54%)
CMYKcmyk(21.7%, 74.6%, 0%, 45.9%)
CIE-LABlab(29.97, 48.21, -42.61)
CIE-LCHlch(29.97, 64.35, 318.53°)
OKLaboklab(41.77% 0.1161 -0.1202)
OKLCHoklch(41.77% 0.167 314)
XYZxyz(11.3720, 6.2256, 24.6424)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C238A #418A23
analogous
#39238A #6C238A #8A2375
triadic
#6C238A #8A6C23 #238A6C
tetradic
#6C238A #8A3923 #418A23 #23758A
square
#6C238A #8A3923 #418A23 #23758A
split-complementary
#6C238A #758A23 #238A39
monochromatic
#200A28 #461759 #6C238A #922FBB #AE54D4

Accessibility & contrast

On white

9.35
#6C238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C238A
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C238A#FFFFFF#000000##FFFFFF
##6C238A1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#1C4888
Tritanopia (blue-blind)
#693954
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c238a;
/* rgb */ color: rgb(108, 35, 138);
/* oklch */ color: oklch(41.8% 0.167 314.0);
Tailwind
colors: {
  custom: {
    50: '#9a65ad',
    500: '#6c238a',
    950: '#000000',
  },
}
SCSS
$custom: #6c238a;
$custom-light: #9a65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6c238a",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 282.524,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41771,
    "c": 0.16716,
    "h": 314
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#6C238A
secondary
#6FB751
accent
#E34573
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6C238A

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

Preview Lab → · Contrast checker → · Palette generator →

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