#6B2297#6B2297

#6B2297 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.181 H 308.9°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#6B2297
RGBrgb(107, 34, 151)
HSLhsl(277, 63%, 36%)
HSVhsv(277, 77%, 59%)
CMYKcmyk(29.1%, 77.5%, 0%, 40.8%)
CIE-LABlab(30.65, 51.28, -49.54)
CIE-LCHlch(30.65, 71.30, 315.99°)
OKLaboklab(42.52% 0.1135 -0.1406)
OKLCHoklch(42.52% 0.181 308.9)
XYZxyz(12.2202, 6.5044, 29.8839)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2297 #4E9722
analogous
#312297 #6B2297 #972289
triadic
#6B2297 #976B22 #22976B
tetradic
#6B2297 #973122 #4E9722 #228997
square
#6B2297 #973122 #4E9722 #228997
split-complementary
#6B2297 #899722 #229731
monochromatic
#240C33 #481765 #6B2297 #8E2DC9 #AA5ADA

Accessibility & contrast

On white

9.13
#6B2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#6B2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2297
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2297#FFFFFF#000000##FFFFFF
##6B22971.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b2297;
/* rgb */ color: rgb(107, 34, 151);
/* oklch */ color: oklch(42.5% 0.181 308.9);
Tailwind
colors: {
  custom: {
    50: '#9a66b6',
    500: '#6b2297',
    950: '#000000',
  },
}
SCSS
$custom: #6b2297;
$custom-light: #9a66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2297",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 277.436,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42524,
    "c": 0.1807,
    "h": 308.9
  },
  "luminance": 0.06504
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B2297

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

Preview Lab → · Contrast checker → · Palette generator →

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