#9257CD#9257CD

#9257CD is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.8% C 0.179 H 304.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9257CD
RGBrgb(146, 87, 205)
HSLhsl(270, 54%, 57%)
HSVhsv(270, 58%, 80%)
CMYKcmyk(28.8%, 57.6%, 0%, 19.6%)
CIE-LABlab(48.68, 46.94, -52.18)
CIE-LCHlch(48.68, 70.19, 311.97°)
OKLaboklab(57.75% 0.1011 -0.1473)
OKLCHoklch(57.75% 0.179 304.5)
XYZxyz(26.2793, 17.3353, 59.7074)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9257CD #92CD57
analogous
#5757CD #9257CD #CD57CD
triadic
#9257CD #CD9257 #57CD92
tetradic
#9257CD #CD5757 #92CD57 #57CDCD
square
#9257CD #CD5757 #92CD57 #57CDCD
split-complementary
#9257CD #CDCD57 #57CD57
monochromatic
#552783 #7335B2 #9257CD #B186DB #CFB5E9

Accessibility & contrast

On white

4.70
#9257CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#9257CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9257CD
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9257CD#FFFFFF#000000##FFFFFF
##9257CD1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2672D1
Deuteranopia (green-blind)
#3E74CA
Tritanopia (blue-blind)
#886E8A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9257cd;
/* rgb */ color: rgb(146, 87, 205);
/* oklch */ color: oklch(57.8% 0.179 304.5);
Tailwind
colors: {
  custom: {
    50: '#b589dd',
    500: '#9257cd',
    950: '#000000',
  },
}
SCSS
$custom: #9257cd;
$custom-light: #b589dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9257cd",
  "rgb": {
    "r": 146,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 270,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57751,
    "c": 0.1787,
    "h": 304.5
  },
  "luminance": 0.17335
}

Semantic roles & 50–950 ramp

primary
#9257CD
secondary
#C0D8A8
accent
#DD4A94
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9257CD

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

Preview Lab → · Contrast checker → · Palette generator →

#9257CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva