#6A2398#6A2398

#6A2398 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.180 H 308.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#6A2398
RGBrgb(106, 35, 152)
HSLhsl(276, 63%, 37%)
HSVhsv(276, 77%, 60%)
CMYKcmyk(30.3%, 77%, 0%, 40.4%)
CIE-LABlab(30.72, 50.92, -50.05)
CIE-LCHlch(30.72, 71.39, 315.49°)
OKLaboklab(42.57% 0.1109 -0.1421)
OKLCHoklch(42.57% 0.18 308)
XYZxyz(12.2112, 6.5334, 30.3175)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2398 #519823
analogous
#2F2398 #6A2398 #98238C
triadic
#6A2398 #986A23 #23986A
tetradic
#6A2398 #982F23 #519823 #238C98
square
#6A2398 #982F23 #519823 #238C98
split-complementary
#6A2398 #8C9823 #23982F
monochromatic
#250C35 #471866 #6A2398 #8D2ECA #A85CD9

Accessibility & contrast

On white

9.10
#6A2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6A2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2398
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2398#FFFFFF#000000##FFFFFF
##6A23981.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#63405C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a2398;
/* rgb */ color: rgb(106, 35, 152);
/* oklch */ color: oklch(42.6% 0.180 308.0);
Tailwind
colors: {
  custom: {
    50: '#9966b7',
    500: '#6a2398',
    950: '#000000',
  },
}
SCSS
$custom: #6a2398;
$custom-light: #9966b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2398",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 276.41,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42567,
    "c": 0.18032,
    "h": 308
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#6A2398
secondary
#81BE59
accent
#E64282
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2398

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

Preview Lab → · Contrast checker → · Palette generator →

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