#6A238E#6A238E

#6A238E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.170 H 311.5°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#6A238E
RGBrgb(106, 35, 142)
HSLhsl(280, 60%, 35%)
HSVhsv(280, 75%, 56%)
CMYKcmyk(25.4%, 75.4%, 0%, 44.3%)
CIE-LABlab(29.96, 48.67, -45.13)
CIE-LCHlch(29.96, 66.37, 317.16°)
OKLaboklab(41.79% 0.1128 -0.1277)
OKLCHoklch(41.79% 0.17 311.5)
XYZxyz(11.4265, 6.2195, 26.1845)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A238E #478E23
analogous
#35238E #6A238E #8E237D
triadic
#6A238E #8E6A23 #238E6A
tetradic
#6A238E #8E3523 #478E23 #237D8E
square
#6A238E #8E3523 #478E23 #237D8E
split-complementary
#6A238E #7D8E23 #238E35
monochromatic
#210B2C #45175D #6A238E #8F2FBF #AB56D5

Accessibility & contrast

On white

9.36
#6A238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#6A238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A238E
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A238E#FFFFFF#000000##FFFFFF
##6A238E1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#11488C
Tritanopia (blue-blind)
#653B57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a238e;
/* rgb */ color: rgb(106, 35, 142);
/* oklch */ color: oklch(41.8% 0.170 311.5);
Tailwind
colors: {
  custom: {
    50: '#9965b0',
    500: '#6a238e',
    950: '#000000',
  },
}
SCSS
$custom: #6a238e;
$custom-light: #9965b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a238e",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 279.813,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4179,
    "c": 0.17039,
    "h": 311.5
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#6A238E
secondary
#76B953
accent
#E4447A
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A238E

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

Preview Lab → · Contrast checker → · Palette generator →

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