#6B2495#6B2495

#6B2495 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.177 H 309.4°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#6B2495
RGBrgb(107, 36, 149)
HSLhsl(278, 61%, 36%)
HSVhsv(278, 76%, 58%)
CMYKcmyk(28.2%, 75.8%, 0%, 41.6%)
CIE-LABlab(30.78, 50.02, -48.11)
CIE-LCHlch(30.78, 69.40, 316.12°)
OKLaboklab(42.57% 0.112 -0.1364)
OKLCHoklch(42.57% 0.177 309.4)
XYZxyz(12.1180, 6.5577, 29.0553)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2495 #4E9524
analogous
#332495 #6B2495 #952487
triadic
#6B2495 #956B24 #24956B
tetradic
#6B2495 #953324 #4E9524 #248795
square
#6B2495 #953324 #4E9524 #248795
split-complementary
#6B2495 #879524 #249533
monochromatic
#240C32 #481864 #6B2495 #8E30C6 #AA5CD8

Accessibility & contrast

On white

9.09
#6B2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2495
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2495#FFFFFF#000000##FFFFFF
##6B24951.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#024993
Tritanopia (blue-blind)
#653F5B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6b2495;
/* rgb */ color: rgb(107, 36, 149);
/* oklch */ color: oklch(42.6% 0.177 309.4);
Tailwind
colors: {
  custom: {
    50: '#9a66b5',
    500: '#6b2495',
    950: '#000000',
  },
}
SCSS
$custom: #6b2495;
$custom-light: #9a66b5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2495",
  "rgb": {
    "r": 107,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 277.699,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42565,
    "c": 0.17651,
    "h": 309.4
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#6B2495
secondary
#7EBC59
accent
#E4447F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6B2495

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

Preview Lab → · Contrast checker → · Palette generator →

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