#33117E#33117E

#33117E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.163 H 286.8°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#33117E
RGBrgb(51, 17, 126)
HSLhsl(259, 76%, 28%)
HSVhsv(259, 87%, 49%)
CMYKcmyk(59.5%, 86.5%, 0%, 50.6%)
CIE-LABlab(18.41, 43.06, -54.28)
CIE-LCHlch(18.41, 69.28, 308.42°)
OKLaboklab(31.65% 0.0471 -0.1563)
OKLCHoklch(31.65% 0.163 286.8)
XYZxyz(5.3305, 2.6108, 19.9577)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33117E #5C7E11
analogous
#11257E #33117E #6A117E
triadic
#33117E #7E3311 #117E33
tetradic
#33117E #7E1125 #5C7E11 #117E6A
square
#33117E #7E1125 #5C7E11 #117E6A
split-complementary
#33117E #7E6A11 #257E11
monochromatic
#0B041B #1D0A48 #33117E #4918B4 #6227E2

Accessibility & contrast

On white

13.80
#33117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#33117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33117E
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33117E#FFFFFF#000000##FFFFFF
##33117E1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#0C3349
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #33117e;
/* rgb */ color: rgb(51, 17, 126);
/* oklch */ color: oklch(31.7% 0.163 286.8);
Tailwind
colors: {
  custom: {
    50: '#7556a5',
    500: '#33117e',
    950: '#000000',
  },
}
SCSS
$custom: #33117e;
$custom-light: #7556a5;
$custom-dark: #000000;
JSON
{
  "hex": "#33117e",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 258.716,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31651,
    "c": 0.16325,
    "h": 286.8
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#33117E
secondary
#8DB437
accent
#F335B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33117E

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

Preview Lab → · Contrast checker → · Palette generator →

#33117E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva