#6A237F#6A237F

#6A237F is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.156 H 317.4°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#6A237F
RGBrgb(106, 35, 127)
HSLhsl(286, 57%, 32%)
HSVhsv(286, 72%, 50%)
CMYKcmyk(16.5%, 72.4%, 0%, 50.2%)
CIE-LABlab(28.90, 45.43, -37.49)
CIE-LCHlch(28.90, 58.90, 320.47°)
OKLaboklab(40.7% 0.1147 -0.1053)
OKLCHoklch(40.7% 0.156 317.4)
XYZxyz(10.3751, 5.7990, 20.6474)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A237F #387F23
analogous
#3C237F #6A237F #7F2366
triadic
#6A237F #7F6A23 #237F6A
tetradic
#6A237F #7F3C23 #387F23 #23667F
square
#6A237F #7F3C23 #387F23 #23667F
split-complementary
#6A237F #667F23 #237F3C
monochromatic
#1A091F #42164F #6A237F #9230AF #B14ECE

Accessibility & contrast

On white

9.72
#6A237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6A237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A237F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A237F#FFFFFF#000000##FFFFFF
##6A237F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#26467D
Tritanopia (blue-blind)
#69354E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a237f;
/* rgb */ color: rgb(106, 35, 127);
/* oklch */ color: oklch(40.7% 0.156 317.4);
Tailwind
colors: {
  custom: {
    50: '#9865a5',
    500: '#6a237f',
    950: '#000000',
  },
}
SCSS
$custom: #6a237f;
$custom-light: #9865a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a237f",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 286.304,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40699,
    "c": 0.15566,
    "h": 317.4
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#6A237F
secondary
#63B14C
accent
#E0486B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A237F

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

Preview Lab → · Contrast checker → · Palette generator →

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