#AF4CE4#AF4CE4

#AF4CE4 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.2% C 0.227 H 311.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF4CE4
RGBrgb(175, 76, 228)
HSLhsl(279, 74%, 60%)
HSVhsv(279, 67%, 89%)
CMYKcmyk(23.2%, 66.7%, 0%, 10.6%)
CIE-LABlab(51.71, 64.01, -60.22)
CIE-LCHlch(51.71, 87.89, 316.75°)
OKLaboklab(61.17% 0.1499 -0.17)
OKLCHoklch(61.17% 0.227 311.4)
XYZxyz(34.2646, 19.8851, 75.4170)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CE4 #81E44C
analogous
#634CE4 #AF4CE4 #E44CCD
triadic
#AF4CE4 #E4AF4C #4CE4AF
tetradic
#AF4CE4 #E4634C #81E44C #4CCDE4
square
#AF4CE4 #E4634C #81E44C #4CCDE4
split-complementary
#AF4CE4 #CDE44C #4CE463
monochromatic
#6F189E #9520D3 #AF4CE4 #C781EC #DFB6F4

Accessibility & contrast

On white

4.22
#AF4CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AF4CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CE4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CE4#FFFFFF#000000##000000
##AF4CE41.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E9
Deuteranopia (green-blind)
#3A7DE1
Tritanopia (blue-blind)
#A86B92
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4ce4;
/* rgb */ color: rgb(175, 76, 228);
/* oklch */ color: oklch(61.2% 0.227 311.4);
Tailwind
colors: {
  custom: {
    50: '#cb85ed',
    500: '#af4ce4',
    950: '#000000',
  },
}
SCSS
$custom: #af4ce4;
$custom-light: #cb85ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ce4",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 228
  },
  "hsl": {
    "h": 279.079,
    "s": 73.786,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61171,
    "c": 0.22665,
    "h": 311.4
  },
  "luminance": 0.19884
}

Semantic roles & 50–950 ramp

primary
#AF4CE4
secondary
#BDE3A8
accent
#F03778
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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