#6F2297#6F2297

#6F2297 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.182 H 310.9°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#6F2297
RGBrgb(111, 34, 151)
HSLhsl(279, 63%, 36%)
HSVhsv(279, 77%, 59%)
CMYKcmyk(26.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(31.25, 52.04, -48.54)
CIE-LCHlch(31.25, 71.16, 316.99°)
OKLaboklab(43.07% 0.119 -0.1375)
OKLCHoklch(43.07% 0.182 310.9)
XYZxyz(12.7124, 6.7582, 29.9070)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F2297 #4A9722
analogous
#352297 #6F2297 #972285
triadic
#6F2297 #976F22 #22976F
tetradic
#6F2297 #973522 #4A9722 #228597
square
#6F2297 #973522 #4A9722 #228597
split-complementary
#6F2297 #859722 #229735
monochromatic
#260C33 #4A1765 #6F2297 #942DC9 #AE5ADA

Accessibility & contrast

On white

8.93
#6F2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6F2297
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F2297#FFFFFF#000000##FFFFFF
##6F22971.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#054B95
Tritanopia (blue-blind)
#6A3E5C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6f2297;
/* rgb */ color: rgb(111, 34, 151);
/* oklch */ color: oklch(43.1% 0.182 310.9);
Tailwind
colors: {
  custom: {
    50: '#9d66b6',
    500: '#6f2297',
    950: '#000000',
  },
}
SCSS
$custom: #6f2297;
$custom-light: #9d66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6f2297",
  "rgb": {
    "r": 111,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 279.487,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4307,
    "c": 0.18188,
    "h": 310.9
  },
  "luminance": 0.06758
}

Semantic roles & 50–950 ramp

primary
#6F2297
secondary
#7ABE57
accent
#E6427A
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #6F2297

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

Preview Lab → · Contrast checker → · Palette generator →

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