#6B2498#6B2498

#6B2498 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.179 H 308.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#6B2498
RGBrgb(107, 36, 152)
HSLhsl(277, 62%, 37%)
HSVhsv(277, 76%, 60%)
CMYKcmyk(29.6%, 76.3%, 0%, 40.4%)
CIE-LABlab(31.01, 50.70, -49.57)
CIE-LCHlch(31.01, 70.91, 315.64°)
OKLaboklab(42.8% 0.1114 -0.1407)
OKLCHoklch(42.8% 0.179 308.4)
XYZxyz(12.3606, 6.6548, 30.3330)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2498 #519824
analogous
#312498 #6B2498 #98248B
triadic
#6B2498 #986B24 #24986B
tetradic
#6B2498 #983124 #519824 #248B98
square
#6B2498 #983124 #519824 #248B98
split-complementary
#6B2498 #8B9824 #249831
monochromatic
#250D35 #481867 #6B2498 #8E30C9 #A95ED9

Accessibility & contrast

On white

9.01
#6B2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6B2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2498
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2498#FFFFFF#000000##FFFFFF
##6B24981.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#64405D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6b2498;
/* rgb */ color: rgb(107, 36, 152);
/* oklch */ color: oklch(42.8% 0.179 308.4);
Tailwind
colors: {
  custom: {
    50: '#9a66b7',
    500: '#6b2498',
    950: '#000000',
  },
}
SCSS
$custom: #6b2498;
$custom-light: #9a66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2498",
  "rgb": {
    "r": 107,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 276.724,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.428,
    "c": 0.17949,
    "h": 308.4
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#6B2498
secondary
#81BE5A
accent
#E54382
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6B2498

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

Preview Lab → · Contrast checker → · Palette generator →

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