#A581F7#A581F7

#A581F7 is a light, vivid violet. Relative luminance 0.304; OKLCH L 68.8% C 0.170 H 295.7°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#A581F7
RGBrgb(165, 129, 247)
HSLhsl(258, 88%, 74%)
HSVhsv(258, 48%, 97%)
CMYKcmyk(33.2%, 47.8%, 0%, 3.1%)
CIE-LABlab(62.01, 38.92, -54.39)
CIE-LCHlch(62.01, 66.88, 305.58°)
OKLaboklab(68.84% 0.0737 -0.1533)
OKLCHoklch(68.84% 0.17 295.7)
XYZxyz(40.1516, 30.4146, 91.7329)
Luminance0.3041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A581F7 #D3F781
analogous
#8198F7 #A581F7 #E081F7
triadic
#A581F7 #F7A581 #81F7A5
tetradic
#A581F7 #F78198 #D3F781 #81F7E0
square
#A581F7 #F78198 #D3F781 #81F7E0
split-complementary
#A581F7 #F7E081 #98F781
monochromatic
#530FEE #7C47F3 #A581F7 #CEBBFB #EAE2FD

Accessibility & contrast

On white

2.96
#A581F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#A581F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A581F7
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A581F7#FFFFFF#000000##000000
##A581F71.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5897FB
Deuteranopia (green-blind)
#5F94F4
Tritanopia (blue-blind)
#9298B0
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #a581f7;
/* rgb */ color: rgb(165, 129, 247);
/* oklch */ color: oklch(68.8% 0.170 295.7);
Tailwind
colors: {
  custom: {
    50: '#c3a6fa',
    500: '#a581f7',
    950: '#000000',
  },
}
SCSS
$custom: #a581f7;
$custom-light: #c3a6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#a581f7",
  "rgb": {
    "r": 165,
    "g": 129,
    "b": 247
  },
  "hsl": {
    "h": 258.305,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.68837,
    "c": 0.17013,
    "h": 295.7
  },
  "luminance": 0.30415
}

Semantic roles & 50–950 ramp

primary
#A581F7
secondary
#ECF5D6
accent
#E5019F
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A581F7

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

Preview Lab → · Contrast checker → · Palette generator →

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