#33126A#33126A

#33126A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.139 H 292.7°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#33126A
RGBrgb(51, 18, 106)
HSLhsl(263, 71%, 24%)
HSVhsv(263, 83%, 42%)
CMYKcmyk(51.9%, 83%, 0%, 58.4%)
CIE-LABlab(16.39, 36.91, -44.70)
CIE-LCHlch(16.39, 57.97, 309.55°)
OKLaboklab(29.6% 0.0538 -0.1283)
OKLCHoklch(29.6% 0.139 292.7)
XYZxyz(4.1823, 2.1769, 13.8327)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33126A #496A12
analogous
#121D6A #33126A #5F126A
triadic
#33126A #6A3312 #126A33
tetradic
#33126A #6A121D #496A12 #126A5F
square
#33126A #6A121D #496A12 #126A5F
split-complementary
#33126A #6A5F12 #1D6A12
monochromatic
#0D041A #1A0936 #33126A #4C1B9E #6524D3

Accessibility & contrast

On white

14.63
#33126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#33126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33126A
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33126A#FFFFFF#000000##FFFFFF
##33126A1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#212B3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #33126a;
/* rgb */ color: rgb(51, 18, 106);
/* oklch */ color: oklch(29.6% 0.139 292.7);
Tailwind
colors: {
  custom: {
    50: '#725595',
    500: '#33126a',
    950: '#000000',
  },
}
SCSS
$custom: #33126a;
$custom-light: #725595;
$custom-dark: #000000;
JSON
{
  "hex": "#33126a",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 262.5,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29604,
    "c": 0.13916,
    "h": 292.7
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#33126A
secondary
#79A236
accent
#EE3AAA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #33126A

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

Preview Lab → · Contrast checker → · Palette generator →

#33126A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva