#5A2FBC#5A2FBC

#5A2FBC is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.204 H 289.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5A2FBC
RGBrgb(90, 47, 188)
HSLhsl(258, 60%, 46%)
HSVhsv(258, 75%, 74%)
CMYKcmyk(52.1%, 75%, 0%, 26.3%)
CIE-LABlab(33.64, 52.01, -66.97)
CIE-LCHlch(33.64, 84.79, 307.83°)
OKLaboklab(45.12% 0.0681 -0.1925)
OKLCHoklch(45.12% 0.204 289.5)
XYZxyz(14.3074, 7.8369, 48.3260)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FBC #91BC2F
analogous
#2F4ABC #5A2FBC #A02FBC
triadic
#5A2FBC #BC5A2F #2FBC5A
tetradic
#5A2FBC #BC2F4A #91BC2F #2FBCA0
square
#5A2FBC #BC2F4A #91BC2F #2FBCA0
split-complementary
#5A2FBC #BCA02F #4ABC2F
monochromatic
#2B175A #43238B #5A2FBC #7B54D4 #A185E0

Accessibility & contrast

On white

8.18
#5A2FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5A2FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FBC
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FBC#FFFFFF#000000##FFFFFF
##5A2FBC1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#365673
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a2fbc;
/* rgb */ color: rgb(90, 47, 188);
/* oklch */ color: oklch(45.1% 0.204 289.5);
Tailwind
colors: {
  custom: {
    50: '#936cd1',
    500: '#5a2fbc',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fbc;
$custom-light: #936cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fbc",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 258.298,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45122,
    "c": 0.20417,
    "h": 289.5
  },
  "luminance": 0.07838
}

Semantic roles & 50–950 ramp

primary
#5A2FBC
secondary
#B2CA7D
accent
#E345B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2FBC

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

Preview Lab → · Contrast checker → · Palette generator →

#5A2FBC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva