#6B2098#6B2098

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

Color values

HEX#6B2098
RGBrgb(107, 32, 152)
HSLhsl(278, 65%, 36%)
HSVhsv(278, 79%, 60%)
CMYKcmyk(29.6%, 78.9%, 0%, 40.4%)
CIE-LABlab(30.46, 52.27, -50.46)
CIE-LCHlch(30.46, 72.65, 316.01°)
OKLaboklab(42.42% 0.115 -0.1433)
OKLCHoklch(42.42% 0.184 308.8)
XYZxyz(12.2462, 6.4260, 30.2949)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2098 #4D9820
analogous
#2F2098 #6B2098 #982089
triadic
#6B2098 #986B20 #20986B
tetradic
#6B2098 #982F20 #4D9820 #208998
square
#6B2098 #982F20 #4D9820 #208998
split-complementary
#6B2098 #899820 #20982F
monochromatic
#240B33 #471565 #6B2098 #8F2BCB #AA57DC

Accessibility & contrast

On white

9.19
#6B2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2098
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2098#FFFFFF#000000##FFFFFF
##6B20981.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#643E5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6b2098;
/* rgb */ color: rgb(107, 32, 152);
/* oklch */ color: oklch(42.4% 0.184 308.8);
Tailwind
colors: {
  custom: {
    50: '#9a65b7',
    500: '#6b2098',
    950: '#000000',
  },
}
SCSS
$custom: #6b2098;
$custom-light: #9a65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2098",
  "rgb": {
    "r": 107,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 277.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42416,
    "c": 0.18376,
    "h": 308.8
  },
  "luminance": 0.06426
}

Semantic roles & 50–950 ramp

primary
#6B2098
secondary
#7DBF54
accent
#E8407F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B2098

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

Preview Lab → · Contrast checker → · Palette generator →

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