#6B2EA8#6B2EA8

#6B2EA8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.185 H 302.3°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#6B2EA8
RGBrgb(107, 46, 168)
HSLhsl(270, 57%, 42%)
HSVhsv(270, 73%, 66%)
CMYKcmyk(36.3%, 72.6%, 0%, 34.1%)
CIE-LABlab(33.79, 50.12, -54.75)
CIE-LCHlch(33.79, 74.23, 312.47°)
OKLaboklab(45.16% 0.0985 -0.156)
OKLCHoklch(45.16% 0.185 302.3)
XYZxyz(14.1066, 7.9069, 37.8212)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2EA8 #6BA82E
analogous
#2E2EA8 #6B2EA8 #A82EA8
triadic
#6B2EA8 #A86B2E #2EA86B
tetradic
#6B2EA8 #A82E2E #6BA82E #2EA8A8
square
#6B2EA8 #A82E2E #6BA82E #2EA8A8
split-complementary
#6B2EA8 #A8A82E #2EA82E
monochromatic
#2E1448 #4C2178 #6B2EA8 #8A47CD #A877DA

Accessibility & contrast

On white

8.14
#6B2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6B2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2EA8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2EA8#FFFFFF#000000##FFFFFF
##6B2EA81.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#5E4C68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b2ea8;
/* rgb */ color: rgb(107, 46, 168);
/* oklch */ color: oklch(45.2% 0.185 302.3);
Tailwind
colors: {
  custom: {
    50: '#9b6cc3',
    500: '#6b2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ea8;
$custom-light: #9b6cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ea8",
  "rgb": {
    "r": 107,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 270,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45156,
    "c": 0.18451,
    "h": 302.3
  },
  "luminance": 0.07907
}

Semantic roles & 50–950 ramp

primary
#6B2EA8
secondary
#99C270
accent
#E04894
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6B2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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