#6A239E#6A239E

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

Color values

HEX#6A239E
RGBrgb(106, 35, 158)
HSLhsl(275, 64%, 38%)
HSVhsv(275, 78%, 62%)
CMYKcmyk(32.9%, 77.8%, 0%, 38%)
CIE-LABlab(31.20, 52.29, -52.93)
CIE-LCHlch(31.20, 74.40, 314.65°)
OKLaboklab(43.05% 0.1096 -0.1506)
OKLCHoklch(43.05% 0.186 306)
XYZxyz(12.7151, 6.7350, 32.9713)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A239E #579E23
analogous
#2C239E #6A239E #9E2395
triadic
#6A239E #9E6A23 #239E6A
tetradic
#6A239E #9E2C23 #579E23 #23959E
square
#6A239E #9E2C23 #579E23 #23959E
split-complementary
#6A239E #959E23 #239E2C
monochromatic
#270D3A #48186C #6A239E #8C2ED0 #A760DC

Accessibility & contrast

On white

8.95
#6A239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6A239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A239E
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A239E#FFFFFF#000000##FFFFFF
##6A239E1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#614260
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6a239e;
/* rgb */ color: rgb(106, 35, 158);
/* oklch */ color: oklch(43.0% 0.186 306.0);
Tailwind
colors: {
  custom: {
    50: '#9a66bc',
    500: '#6a239e',
    950: '#000000',
  },
}
SCSS
$custom: #6a239e;
$custom-light: #9a66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a239e",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 274.634,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4305,
    "c": 0.18628,
    "h": 306
  },
  "luminance": 0.06735
}

Semantic roles & 50–950 ramp

primary
#6A239E
secondary
#87C15C
accent
#E74187
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A239E

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

Preview Lab → · Contrast checker → · Palette generator →

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