#6F2DAB#6F2DAB

#6F2DAB is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.190 H 303.5°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#6F2DAB
RGBrgb(111, 45, 171)
HSLhsl(271, 58%, 42%)
HSVhsv(271, 74%, 67%)
CMYKcmyk(35.1%, 73.7%, 0%, 32.9%)
CIE-LABlab(34.39, 52.06, -55.55)
CIE-LCHlch(34.39, 76.13, 313.14°)
OKLaboklab(45.77% 0.1046 -0.1582)
OKLCHoklch(45.77% 0.19 303.5)
XYZxyz(14.8429, 8.1966, 39.3203)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F2DAB #69AB2D
analogous
#302DAB #6F2DAB #AB2DA8
triadic
#6F2DAB #AB6F2D #2DAB6F
tetradic
#6F2DAB #AB302D #69AB2D #2DA8AB
square
#6F2DAB #AB302D #69AB2D #2DA8AB
split-complementary
#6F2DAB #A8AB2D #2DAB30
monochromatic
#30144A #50207B #6F2DAB #8E47CE #AC77DB

Accessibility & contrast

On white

7.96
#6F2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6F2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F2DAB
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F2DAB#FFFFFF#000000##FFFFFF
##6F2DAB1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#634C69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6f2dab;
/* rgb */ color: rgb(111, 45, 171);
/* oklch */ color: oklch(45.8% 0.190 303.5);
Tailwind
colors: {
  custom: {
    50: '#9e6cc5',
    500: '#6f2dab',
    950: '#000000',
  },
}
SCSS
$custom: #6f2dab;
$custom-light: #9e6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6f2dab",
  "rgb": {
    "r": 111,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 271.429,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45769,
    "c": 0.18966,
    "h": 303.5
  },
  "luminance": 0.08197
}

Semantic roles & 50–950 ramp

primary
#6F2DAB
secondary
#98C371
accent
#E24690
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6F2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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