#A256F2#A256F2

#A256F2 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.8% C 0.225 H 302.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#A256F2
RGBrgb(162, 86, 242)
HSLhsl(269, 86%, 64%)
HSVhsv(269, 64%, 95%)
CMYKcmyk(33.1%, 64.5%, 0%, 5.1%)
CIE-LABlab(52.67, 59.81, -66.61)
CIE-LCHlch(52.67, 89.52, 311.92°)
OKLaboklab(61.81% 0.1214 -0.1892)
OKLCHoklch(61.81% 0.225 302.7)
XYZxyz(34.2514, 20.7477, 86.1874)
Luminance0.2075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A256F2 #A6F256
analogous
#5658F2 #A256F2 #F056F2
triadic
#A256F2 #F2A256 #56F2A2
tetradic
#A256F2 #F25658 #A6F256 #56F2F0
square
#A256F2 #F25658 #A6F256 #56F2F0
split-complementary
#A256F2 #F2F056 #58F256
monochromatic
#650FBF #831DEE #A256F2 #C18FF6 #E1C8FB

Accessibility & contrast

On white

4.08
#A256F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#A256F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A256F2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A256F2#FFFFFF#000000##000000
##A256F21.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#1A7DEF
Tritanopia (blue-blind)
#92789D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a256f2;
/* rgb */ color: rgb(162, 86, 242);
/* oklch */ color: oklch(61.8% 0.225 302.7);
Tailwind
colors: {
  custom: {
    50: '#c38af7',
    500: '#a256f2',
    950: '#000000',
  },
}
SCSS
$custom: #a256f2;
$custom-light: #c38af7;
$custom-dark: #000000;
JSON
{
  "hex": "#a256f2",
  "rgb": {
    "r": 162,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 269.231,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61806,
    "c": 0.22477,
    "h": 302.7
  },
  "luminance": 0.20748
}

Semantic roles & 50–950 ramp

primary
#A256F2
secondary
#D3EDB7
accent
#E20376
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #A256F2

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

Preview Lab → · Contrast checker → · Palette generator →

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