#6C238E#6C238E

#6C238E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.171 H 312.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#6C238E
RGBrgb(108, 35, 142)
HSLhsl(281, 60%, 35%)
HSVhsv(281, 75%, 56%)
CMYKcmyk(23.9%, 75.4%, 0%, 44.3%)
CIE-LABlab(30.26, 49.08, -44.63)
CIE-LCHlch(30.26, 66.34, 317.72°)
OKLaboklab(42.07% 0.1156 -0.1262)
OKLCHoklch(42.07% 0.171 312.5)
XYZxyz(11.6670, 6.3435, 26.1958)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C238E #458E23
analogous
#37238E #6C238E #8E237A
triadic
#6C238E #8E6C23 #238E6C
tetradic
#6C238E #8E3723 #458E23 #237A8E
square
#6C238E #8E3723 #458E23 #237A8E
split-complementary
#6C238E #7A8E23 #238E37
monochromatic
#210B2C #47175D #6C238E #912FBF #AD56D5

Accessibility & contrast

On white

9.26
#6C238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6C238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C238E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C238E#FFFFFF#000000##FFFFFF
##6C238E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#16498C
Tritanopia (blue-blind)
#683B57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c238e;
/* rgb */ color: rgb(108, 35, 142);
/* oklch */ color: oklch(42.1% 0.171 312.5);
Tailwind
colors: {
  custom: {
    50: '#9a66b0',
    500: '#6c238e',
    950: '#000000',
  },
}
SCSS
$custom: #6c238e;
$custom-light: #9a66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c238e",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 280.935,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42068,
    "c": 0.17107,
    "h": 312.5
  },
  "luminance": 0.06343
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C238E

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

Preview Lab → · Contrast checker → · Palette generator →

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