#6B2298#6B2298

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

Color values

HEX#6B2298
RGBrgb(107, 34, 152)
HSLhsl(277, 63%, 36%)
HSVhsv(277, 78%, 60%)
CMYKcmyk(29.6%, 77.6%, 0%, 40.4%)
CIE-LABlab(30.73, 51.50, -50.03)
CIE-LCHlch(30.73, 71.80, 315.83°)
OKLaboklab(42.6% 0.1133 -0.142)
OKLCHoklch(42.6% 0.182 308.6)
XYZxyz(12.3018, 6.5371, 30.3134)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2298 #4F9822
analogous
#302298 #6B2298 #98228A
triadic
#6B2298 #986B22 #22986B
tetradic
#6B2298 #983022 #4F9822 #228A98
square
#6B2298 #983022 #4F9822 #228A98
split-complementary
#6B2298 #8A9822 #229830
monochromatic
#250C34 #481766 #6B2298 #8E2DCA #A95ADA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B2298#FFFFFF#000000##FFFFFF
##6B22981.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)
#643F5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6b2298;
/* rgb */ color: rgb(107, 34, 152);
/* oklch */ color: oklch(42.6% 0.182 308.6);
Tailwind
colors: {
  custom: {
    50: '#9a66b7',
    500: '#6b2298',
    950: '#000000',
  },
}
SCSS
$custom: #6b2298;
$custom-light: #9a66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2298",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 277.119,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42603,
    "c": 0.18168,
    "h": 308.6
  },
  "luminance": 0.06537
}

Semantic roles & 50–950 ramp

primary
#6B2298
secondary
#7FBE57
accent
#E64180
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B2298

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

Preview Lab → · Contrast checker → · Palette generator →

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