#5725AF#5725AF

#5725AF is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.5% C 0.200 H 292.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5725AF
RGBrgb(87, 37, 175)
HSLhsl(262, 65%, 42%)
HSVhsv(262, 79%, 69%)
CMYKcmyk(50.3%, 78.9%, 0%, 31.4%)
CIE-LABlab(30.51, 52.64, -64.41)
CIE-LCHlch(30.51, 83.18, 309.26°)
OKLaboklab(42.49% 0.0748 -0.185)
OKLCHoklch(42.49% 0.2 292)
XYZxyz(12.3277, 6.4441, 41.1434)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5725AF #7DAF25
analogous
#2538AF #5725AF #9C25AF
triadic
#5725AF #AF5725 #25AF57
tetradic
#5725AF #AF2538 #7DAF25 #25AF9C
square
#5725AF #AF2538 #7DAF25 #25AF9C
split-complementary
#5725AF #AF9C25 #38AF25
monochromatic
#25104A #3E1A7C #5725AF #733CD6 #976EE0

Accessibility & contrast

On white

9.17
#5725AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5725AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5725AF
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5725AF#FFFFFF#000000##FFFFFF
##5725AF1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#394C6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5725af;
/* rgb */ color: rgb(87, 37, 175);
/* oklch */ color: oklch(42.5% 0.200 292.0);
Tailwind
colors: {
  custom: {
    50: '#9066c8',
    500: '#5725af',
    950: '#000000',
  },
}
SCSS
$custom: #5725af;
$custom-light: #9066c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5725af",
  "rgb": {
    "r": 87,
    "g": 37,
    "b": 175
  },
  "hsl": {
    "h": 261.739,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42486,
    "c": 0.19955,
    "h": 292
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#5725AF
secondary
#A5C769
accent
#E840AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5725AF

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

Preview Lab → · Contrast checker → · Palette generator →

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