#5938AF#5938AF

#5938AF is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.179 H 290.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5938AF
RGBrgb(89, 56, 175)
HSLhsl(257, 52%, 45%)
HSVhsv(257, 68%, 69%)
CMYKcmyk(49.1%, 68%, 0%, 31.4%)
CIE-LABlab(34.08, 43.52, -58.55)
CIE-LCHlch(34.08, 72.95, 306.62°)
OKLaboklab(45.06% 0.0613 -0.1678)
OKLCHoklch(45.06% 0.179 290.1)
XYZxyz(13.2696, 8.0468, 41.4031)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5938AF #8EAF38
analogous
#3852AF #5938AF #9538AF
triadic
#5938AF #AF5938 #38AF59
tetradic
#5938AF #AF3852 #8EAF38 #38AF95
square
#5938AF #AF3852 #8EAF38 #38AF95
split-complementary
#5938AF #AF9538 #52AF38
monochromatic
#2A1A52 #412981 #5938AF #795ACA #9F88D9

Accessibility & contrast

On white

8.05
#5938AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5938AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5938AF
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5938AF#FFFFFF#000000##FFFFFF
##5938AF1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#3C566F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5938af;
/* rgb */ color: rgb(89, 56, 175);
/* oklch */ color: oklch(45.1% 0.179 290.1);
Tailwind
colors: {
  custom: {
    50: '#9071c8',
    500: '#5938af',
    950: '#000000',
  },
}
SCSS
$custom: #5938af;
$custom-light: #9071c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5938af",
  "rgb": {
    "r": 89,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 256.639,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45064,
    "c": 0.1787,
    "h": 290.1
  },
  "luminance": 0.08047
}

Semantic roles & 50–950 ramp

primary
#5938AF
secondary
#B0C380
accent
#DB4DB4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5938AF

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

Preview Lab → · Contrast checker → · Palette generator →

#5938AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva