#33256C#33256C

#33256C is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.6% C 0.118 H 287.0°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#33256C
RGBrgb(51, 37, 108)
HSLhsl(252, 49%, 28%)
HSVhsv(252, 66%, 42%)
CMYKcmyk(52.8%, 65.7%, 0%, 57.6%)
CIE-LABlab(20.48, 26.72, -39.32)
CIE-LCHlch(20.48, 47.54, 304.20°)
OKLaboklab(32.58% 0.0344 -0.1126)
OKLCHoklch(32.58% 0.118 287)
XYZxyz(4.7328, 3.1094, 14.5353)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33256C #5E6C25
analogous
#253A6C #33256C #56256C
triadic
#33256C #6C3325 #256C33
tetradic
#33256C #6C253A #5E6C25 #256C56
square
#33256C #6C253A #5E6C25 #256C56
split-complementary
#33256C #6C5625 #3A6C25
monochromatic
#0B0817 #1D153E #33256C #49359A #624AC1

Accessibility & contrast

On white

12.95
#33256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#33256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33256C
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33256C#FFFFFF#000000##FFFFFF
##33256C1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#002F6B
Tritanopia (blue-blind)
#1E3644
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #33256c;
/* rgb */ color: rgb(51, 37, 108);
/* oklch */ color: oklch(32.6% 0.118 287.0);
Tailwind
colors: {
  custom: {
    50: '#706097',
    500: '#33256c',
    950: '#000000',
  },
}
SCSS
$custom: #33256c;
$custom-light: #706097;
$custom-dark: #000000;
JSON
{
  "hex": "#33256c",
  "rgb": {
    "r": 51,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 251.831,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32576,
    "c": 0.11779,
    "h": 287
  },
  "luminance": 0.0311
}

Semantic roles & 50–950 ramp

primary
#33256C
secondary
#8F9F4E
accent
#D94FBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #33256C

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

Preview Lab → · Contrast checker → · Palette generator →

#33256C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva