#6B2299#6B2299

#6B2299 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.183 H 308.2°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#6B2299
RGBrgb(107, 34, 153)
HSLhsl(277, 64%, 37%)
HSVhsv(277, 78%, 60%)
CMYKcmyk(30.1%, 77.8%, 0%, 40%)
CIE-LABlab(30.81, 51.72, -50.51)
CIE-LCHlch(30.81, 72.30, 315.68°)
OKLaboklab(42.68% 0.1131 -0.1435)
OKLCHoklch(42.68% 0.183 308.2)
XYZxyz(12.3840, 6.5700, 30.7466)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2299 #509922
analogous
#302299 #6B2299 #99228C
triadic
#6B2299 #996B22 #22996B
tetradic
#6B2299 #993022 #509922 #228C99
square
#6B2299 #993022 #509922 #228C99
split-complementary
#6B2299 #8C9922 #229930
monochromatic
#250C35 #481767 #6B2299 #8E2DCB #A95BDB

Accessibility & contrast

On white

9.08
#6B2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2299
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2299#FFFFFF#000000##FFFFFF
##6B22991.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#643F5D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6b2299;
/* rgb */ color: rgb(107, 34, 153);
/* oklch */ color: oklch(42.7% 0.183 308.2);
Tailwind
colors: {
  custom: {
    50: '#9a66b8',
    500: '#6b2299',
    950: '#000000',
  },
}
SCSS
$custom: #6b2299;
$custom-light: #9a66b8;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2299",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 276.807,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42683,
    "c": 0.18266,
    "h": 308.2
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#6B2299
secondary
#80BF58
accent
#E74181
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B2299

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

Preview Lab → · Contrast checker → · Palette generator →

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