#C581F8#C581F8

#C581F8 is a light, vivid violet. Relative luminance 0.343; OKLCH L 72.0% C 0.178 H 309.0°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#C581F8
RGBrgb(197, 129, 248)
HSLhsl(274, 89%, 74%)
HSVhsv(274, 48%, 97%)
CMYKcmyk(20.6%, 48%, 0%, 2.7%)
CIE-LABlab(65.24, 47.50, -49.63)
CIE-LCHlch(65.24, 68.69, 313.74°)
OKLaboklab(72% 0.1121 -0.1386)
OKLCHoklch(72% 0.178 309)
XYZxyz(47.8162, 34.3488, 92.8998)
Luminance0.3435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C581F8 #B4F881
analogous
#8A81F8 #C581F8 #F881EF
triadic
#C581F8 #F8C581 #81F8C5
tetradic
#C581F8 #F88A81 #B4F881 #81EFF8
square
#C581F8 #F88A81 #B4F881 #81EFF8
split-complementary
#C581F8 #EFF881 #81F88A
monochromatic
#900DF1 #AA47F5 #C581F8 #E0BBFB #F2E2FD

Accessibility & contrast

On white

2.67
#C581F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#C581F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C581F8
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C581F8#FFFFFF#000000##000000
##C581F81.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#639BFC
Deuteranopia (green-blind)
#769FF5
Tritanopia (blue-blind)
#BE95B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #c581f8;
/* rgb */ color: rgb(197, 129, 248);
/* oklch */ color: oklch(72.0% 0.178 309.0);
Tailwind
colors: {
  custom: {
    50: '#d9a7fb',
    500: '#c581f8',
    950: '#000000',
  },
}
SCSS
$custom: #c581f8;
$custom-light: #d9a7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#c581f8",
  "rgb": {
    "r": 197,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 274.286,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71995,
    "c": 0.17828,
    "h": 309
  },
  "luminance": 0.34348
}

Semantic roles & 50–950 ramp

primary
#C581F8
secondary
#E3F5D6
accent
#E60062
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C581F8

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

Preview Lab → · Contrast checker → · Palette generator →

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