#AF4FE4#AF4FE4

#AF4FE4 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.5% C 0.223 H 311.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF4FE4
RGBrgb(175, 79, 228)
HSLhsl(279, 73%, 60%)
HSVhsv(279, 65%, 89%)
CMYKcmyk(23.2%, 65.4%, 0%, 10.6%)
CIE-LABlab(52.18, 62.69, -59.45)
CIE-LCHlch(52.18, 86.40, 316.52°)
OKLaboklab(61.51% 0.1467 -0.1677)
OKLCHoklch(61.51% 0.223 311.2)
XYZxyz(34.4762, 20.3082, 75.4875)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FE4 #84E44F
analogous
#654FE4 #AF4FE4 #E44FCE
triadic
#AF4FE4 #E4AF4F #4FE4AF
tetradic
#AF4FE4 #E4654F #84E44F #4FCEE4
square
#AF4FE4 #E4654F #84E44F #4FCEE4
split-complementary
#AF4FE4 #CEE44F #4FE465
monochromatic
#7019A0 #9521D5 #AF4FE4 #C784EC #DFB9F4

Accessibility & contrast

On white

4.15
#AF4FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AF4FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FE4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FE4#FFFFFF#000000##000000
##AF4FE41.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#3E7EE1
Tritanopia (blue-blind)
#A86D93
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4fe4;
/* rgb */ color: rgb(175, 79, 228);
/* oklch */ color: oklch(61.5% 0.223 311.2);
Tailwind
colors: {
  custom: {
    50: '#cb87ed',
    500: '#af4fe4',
    950: '#000000',
  },
}
SCSS
$custom: #af4fe4;
$custom-light: #cb87ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fe4",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 228
  },
  "hsl": {
    "h": 278.658,
    "s": 73.399,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61513,
    "c": 0.22283,
    "h": 311.2
  },
  "luminance": 0.20307
}

Semantic roles & 50–950 ramp

primary
#AF4FE4
secondary
#BFE4AB
accent
#D61056
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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