#A257CB#A257CB

#A257CB is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.4% C 0.181 H 312.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#A257CB
RGBrgb(162, 87, 203)
HSLhsl(279, 53%, 57%)
HSVhsv(279, 57%, 80%)
CMYKcmyk(20.2%, 57.1%, 0%, 20.4%)
CIE-LABlab(50.46, 50.45, -48.08)
CIE-LCHlch(50.46, 69.69, 316.38°)
OKLaboklab(59.44% 0.1214 -0.1348)
OKLCHoklch(59.44% 0.181 312)
XYZxyz(29.0861, 18.8103, 58.5869)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257CB #80CB57
analogous
#6857CB #A257CB #CB57BA
triadic
#A257CB #CBA257 #57CBA2
tetradic
#A257CB #CB6857 #80CB57 #57BACB
square
#A257CB #CB6857 #80CB57 #57BACB
split-complementary
#A257CB #BACB57 #57CB68
monochromatic
#612880 #8436AF #A257CB #BC86D9 #D6B4E8

Accessibility & contrast

On white

4.41
#A257CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#A257CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257CB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257CB#FFFFFF#000000##000000
##A257CB1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3374CF
Deuteranopia (green-blind)
#4F7AC8
Tritanopia (blue-blind)
#9E6C89
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a257cb;
/* rgb */ color: rgb(162, 87, 203);
/* oklch */ color: oklch(59.4% 0.181 312.0);
Tailwind
colors: {
  custom: {
    50: '#c08adb',
    500: '#a257cb',
    950: '#000000',
  },
}
SCSS
$custom: #a257cb;
$custom-light: #c08adb;
$custom-dark: #000000;
JSON
{
  "hex": "#a257cb",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 278.793,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59439,
    "c": 0.18141,
    "h": 312
  },
  "luminance": 0.1881
}

Semantic roles & 50–950 ramp

primary
#A257CB
secondary
#B8D7A7
accent
#DC4C7F
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #A257CB

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

Preview Lab → · Contrast checker → · Palette generator →

#A257CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva