#6B2EA4#6B2EA4

#6B2EA4 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.180 H 303.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#6B2EA4
RGBrgb(107, 46, 164)
HSLhsl(271, 56%, 41%)
HSVhsv(271, 72%, 64%)
CMYKcmyk(34.8%, 72%, 0%, 35.7%)
CIE-LABlab(33.48, 49.14, -52.85)
CIE-LCHlch(33.48, 72.17, 312.92°)
OKLaboklab(44.84% 0.0993 -0.1504)
OKLCHoklch(44.84% 0.18 303.4)
XYZxyz(13.7397, 7.7601, 35.8888)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2EA4 #67A42E
analogous
#302EA4 #6B2EA4 #A42EA2
triadic
#6B2EA4 #A46B2E #2EA46B
tetradic
#6B2EA4 #A4302E #67A42E #2EA2A4
square
#6B2EA4 #A4302E #67A42E #2EA2A4
split-complementary
#6B2EA4 #A2A42E #2EA430
monochromatic
#2D1344 #4C2174 #6B2EA4 #8A45CB #A874D8

Accessibility & contrast

On white

8.23
#6B2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6B2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2EA4
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2EA4#FFFFFF#000000##FFFFFF
##6B2EA41.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#604A66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b2ea4;
/* rgb */ color: rgb(107, 46, 164);
/* oklch */ color: oklch(44.8% 0.180 303.4);
Tailwind
colors: {
  custom: {
    50: '#9a6cc0',
    500: '#6b2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ea4;
$custom-light: #9a6cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ea4",
  "rgb": {
    "r": 107,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 271.017,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44839,
    "c": 0.1802,
    "h": 303.4
  },
  "luminance": 0.0776
}

Semantic roles & 50–950 ramp

primary
#6B2EA4
secondary
#96C06E
accent
#DF4891
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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