#35157F#35157F

#35157F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.161 H 287.2°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#35157F
RGBrgb(53, 21, 127)
HSLhsl(258, 72%, 29%)
HSVhsv(258, 83%, 50%)
CMYKcmyk(58.3%, 83.5%, 0%, 50.2%)
CIE-LABlab(19.33, 41.88, -53.39)
CIE-LCHlch(19.33, 67.86, 308.11°)
OKLaboklab(32.37% 0.0476 -0.1537)
OKLCHoklch(32.37% 0.161 287.2)
XYZxyz(5.5660, 2.8252, 20.3266)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35157F #5F7F15
analogous
#152A7F #35157F #6A157F
triadic
#35157F #7F3515 #157F35
tetradic
#35157F #7F152A #5F7F15 #157F6A
square
#35157F #7F152A #5F7F15 #157F6A
split-complementary
#35157F #7F6A15 #2A7F15
monochromatic
#0B041A #1F0C4A #35157F #4B1EB4 #6531DD

Accessibility & contrast

On white

13.42
#35157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#35157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35157F
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35157F#FFFFFF#000000##FFFFFF
##35157F1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#12354B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #35157f;
/* rgb */ color: rgb(53, 21, 127);
/* oklch */ color: oklch(32.4% 0.161 287.2);
Tailwind
colors: {
  custom: {
    50: '#7658a5',
    500: '#35157f',
    950: '#000000',
  },
}
SCSS
$custom: #35157f;
$custom-light: #7658a5;
$custom-dark: #000000;
JSON
{
  "hex": "#35157f",
  "rgb": {
    "r": 53,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 258.113,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32369,
    "c": 0.16093,
    "h": 287.2
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#35157F
secondary
#90B43C
accent
#EE39B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #35157F

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

Preview Lab → · Contrast checker → · Palette generator →

#35157F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva