#6A239D#6A239D

#6A239D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.185 H 306.4°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#6A239D
RGBrgb(106, 35, 157)
HSLhsl(275, 64%, 38%)
HSVhsv(275, 78%, 62%)
CMYKcmyk(32.5%, 77.7%, 0%, 38.4%)
CIE-LABlab(31.12, 52.06, -52.45)
CIE-LCHlch(31.12, 73.90, 314.78°)
OKLaboklab(42.97% 0.1098 -0.1492)
OKLCHoklch(42.97% 0.185 306.4)
XYZxyz(12.6294, 6.7007, 32.5198)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A239D #569D23
analogous
#2D239D #6A239D #9D2393
triadic
#6A239D #9D6A23 #239D6A
tetradic
#6A239D #9D2D23 #569D23 #23939D
square
#6A239D #9D2D23 #569D23 #23939D
split-complementary
#6A239D #939D23 #239D2D
monochromatic
#260D39 #48186B #6A239D #8C2ECF #A75FDB

Accessibility & contrast

On white

8.97
#6A239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6A239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A239D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A239D#FFFFFF#000000##FFFFFF
##6A239D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#004A9B
Tritanopia (blue-blind)
#61425F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6a239d;
/* rgb */ color: rgb(106, 35, 157);
/* oklch */ color: oklch(43.0% 0.185 306.4);
Tailwind
colors: {
  custom: {
    50: '#9a66bb',
    500: '#6a239d',
    950: '#000000',
  },
}
SCSS
$custom: #6a239d;
$custom-light: #9a66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a239d",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 274.918,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42968,
    "c": 0.18529,
    "h": 306.4
  },
  "luminance": 0.06701
}

Semantic roles & 50–950 ramp

primary
#6A239D
secondary
#86C05C
accent
#E74186
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A239D

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

Preview Lab → · Contrast checker → · Palette generator →

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