#A257DB#A257DB

#A257DB is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.4% C 0.199 H 307.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#A257DB
RGBrgb(162, 87, 219)
HSLhsl(274, 65%, 60%)
HSVhsv(274, 60%, 86%)
CMYKcmyk(26%, 60.3%, 0%, 14.1%)
CIE-LABlab(51.40, 54.01, -55.71)
CIE-LCHlch(51.40, 77.60, 314.11°)
OKLaboklab(60.42% 0.1215 -0.1572)
OKLCHoklch(60.42% 0.199 307.7)
XYZxyz(31.0921, 19.6127, 69.1518)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A257DB #90DB57
analogous
#6057DB #A257DB #DB57D2
triadic
#A257DB #DBA257 #57DBA2
tetradic
#A257DB #DB6057 #90DB57 #57D2DB
square
#A257DB #DB6057 #90DB57 #57D2DB
split-complementary
#A257DB #D2DB57 #57DB60
monochromatic
#642097 #852BCA #A257DB #BE89E6 #DABCF1

Accessibility & contrast

On white

4.27
#A257DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#A257DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A257DB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A257DB#FFFFFF#000000##000000
##A257DB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A78DF
Deuteranopia (green-blind)
#417BD8
Tritanopia (blue-blind)
#997191
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #a257db;
/* rgb */ color: rgb(162, 87, 219);
/* oklch */ color: oklch(60.4% 0.199 307.7);
Tailwind
colors: {
  custom: {
    50: '#c18ae7',
    500: '#a257db',
    950: '#000000',
  },
}
SCSS
$custom: #a257db;
$custom-light: #c18ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#a257db",
  "rgb": {
    "r": 162,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 274.091,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.60419,
    "c": 0.19868,
    "h": 307.7
  },
  "luminance": 0.19612
}

Semantic roles & 50–950 ramp

primary
#A257DB
secondary
#C3E0AD
accent
#E84088
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A257DB

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

Preview Lab → · Contrast checker → · Palette generator →

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