#6A238A#6A238A

#6A238A is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.166 H 313.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#6A238A
RGBrgb(106, 35, 138)
HSLhsl(281, 60%, 34%)
HSVhsv(281, 75%, 54%)
CMYKcmyk(23.2%, 74.6%, 0%, 45.9%)
CIE-LABlab(29.67, 47.79, -43.13)
CIE-LCHlch(29.67, 64.37, 317.94°)
OKLaboklab(41.49% 0.1134 -0.1218)
OKLCHoklch(41.49% 0.166 313)
XYZxyz(11.1315, 6.1015, 24.6312)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A238A #438A23
analogous
#37238A #6A238A #8A2377
triadic
#6A238A #8A6A23 #238A6A
tetradic
#6A238A #8A3723 #438A23 #23778A
square
#6A238A #8A3723 #438A23 #23778A
split-complementary
#6A238A #778A23 #238A37
monochromatic
#1F0A28 #451759 #6A238A #8F2FBB #AC54D4

Accessibility & contrast

On white

9.46
#6A238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6A238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A238A
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A238A#FFFFFF#000000##FFFFFF
##6A238A1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#194788
Tritanopia (blue-blind)
#663A54
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a238a;
/* rgb */ color: rgb(106, 35, 138);
/* oklch */ color: oklch(41.5% 0.166 313.0);
Tailwind
colors: {
  custom: {
    50: '#9865ad',
    500: '#6a238a',
    950: '#000000',
  },
}
SCSS
$custom: #6a238a;
$custom-light: #9865ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a238a",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 281.359,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4149,
    "c": 0.16645,
    "h": 313
  },
  "luminance": 0.06101
}

Semantic roles & 50–950 ramp

primary
#6A238A
secondary
#71B751
accent
#E34576
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A238A

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

Preview Lab → · Contrast checker → · Palette generator →

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