#6A2297#6A2297

#6A2297 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.180 H 308.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#6A2297
RGBrgb(106, 34, 151)
HSLhsl(277, 63%, 36%)
HSVhsv(277, 77%, 59%)
CMYKcmyk(29.8%, 77.5%, 0%, 40.8%)
CIE-LABlab(30.50, 51.09, -49.79)
CIE-LCHlch(30.50, 71.33, 315.74°)
OKLaboklab(42.39% 0.1121 -0.1414)
OKLCHoklch(42.39% 0.18 308.4)
XYZxyz(12.1006, 6.4428, 29.8783)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2297 #4F9722
analogous
#302297 #6A2297 #97228A
triadic
#6A2297 #976A22 #22976A
tetradic
#6A2297 #973022 #4F9722 #228A97
square
#6A2297 #973022 #4F9722 #228A97
split-complementary
#6A2297 #8A9722 #229730
monochromatic
#240C33 #471765 #6A2297 #8D2DC9 #A85ADA

Accessibility & contrast

On white

9.18
#6A2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6A2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2297
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2297#FFFFFF#000000##FFFFFF
##6A22971.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#633F5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a2297;
/* rgb */ color: rgb(106, 34, 151);
/* oklch */ color: oklch(42.4% 0.180 308.4);
Tailwind
colors: {
  custom: {
    50: '#9965b6',
    500: '#6a2297',
    950: '#000000',
  },
}
SCSS
$custom: #6a2297;
$custom-light: #9965b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2297",
  "rgb": {
    "r": 106,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 276.923,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42389,
    "c": 0.18041,
    "h": 308.4
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#6A2297
secondary
#7EBE57
accent
#E64281
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A2297

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

Preview Lab → · Contrast checker → · Palette generator →

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