#5235AF#5235AF

#5235AF is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.183 H 287.2°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5235AF
RGBrgb(82, 53, 175)
HSLhsl(254, 54%, 45%)
HSVhsv(254, 70%, 69%)
CMYKcmyk(53.1%, 69.7%, 0%, 31.4%)
CIE-LABlab(32.78, 43.95, -60.71)
CIE-LCHlch(32.78, 74.95, 305.90°)
OKLaboklab(43.96% 0.0541 -0.1744)
OKLCHoklch(43.96% 0.183 287.2)
XYZxyz(12.4884, 7.4346, 41.3261)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235AF #92AF35
analogous
#3555AF #5235AF #8F35AF
triadic
#5235AF #AF5235 #35AF52
tetradic
#5235AF #AF3555 #92AF35 #35AF8F
square
#5235AF #AF3555 #92AF35 #35AF8F
split-complementary
#5235AF #AF8F35 #55AF35
monochromatic
#261951 #3C2780 #5235AF #7256CC #9985DA

Accessibility & contrast

On white

8.44
#5235AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5235AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235AF
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235AF#FFFFFF#000000##FFFFFF
##5235AF1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#2D556E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5235af;
/* rgb */ color: rgb(82, 53, 175);
/* oklch */ color: oklch(44.0% 0.183 287.2);
Tailwind
colors: {
  custom: {
    50: '#8c6fc8',
    500: '#5235af',
    950: '#000000',
  },
}
SCSS
$custom: #5235af;
$custom-light: #8c6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5235af",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 175
  },
  "hsl": {
    "h": 254.262,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43963,
    "c": 0.18262,
    "h": 287.2
  },
  "luminance": 0.07435
}

Semantic roles & 50–950 ramp

primary
#5235AF
secondary
#B3C47C
accent
#DD4BBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5235AF

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

Preview Lab → · Contrast checker → · Palette generator →

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