#AF4FE8#AF4FE8

#AF4FE8 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.8% C 0.227 H 310.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF4FE8
RGBrgb(175, 79, 232)
HSLhsl(278, 77%, 61%)
HSVhsv(278, 66%, 91%)
CMYKcmyk(24.6%, 65.9%, 0%, 9%)
CIE-LABlab(52.43, 63.54, -61.30)
CIE-LCHlch(52.43, 88.29, 316.02°)
OKLaboklab(61.77% 0.1464 -0.1732)
OKLCHoklch(61.77% 0.227 310.2)
XYZxyz(35.0379, 20.5329, 78.4458)
Luminance0.2053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FE8 #88E84F
analogous
#624FE8 #AF4FE8 #E84FD4
triadic
#AF4FE8 #E8AF4F #4FE8AF
tetradic
#AF4FE8 #E8624F #88E84F #4FD4E8
square
#AF4FE8 #E8624F #88E84F #4FD4E8
split-complementary
#AF4FE8 #D4E84F #4FE862
monochromatic
#7116A7 #951DDD #AF4FE8 #C885EF #E0BBF6

Accessibility & contrast

On white

4.11
#AF4FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AF4FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FE8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FE8#FFFFFF#000000##000000
##AF4FE81.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079ED
Deuteranopia (green-blind)
#397FE5
Tritanopia (blue-blind)
#A76F95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4fe8;
/* rgb */ color: rgb(175, 79, 232);
/* oklch */ color: oklch(61.8% 0.227 310.2);
Tailwind
colors: {
  custom: {
    50: '#cb87f0',
    500: '#af4fe8',
    950: '#000000',
  },
}
SCSS
$custom: #af4fe8;
$custom-light: #cb87f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fe8",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 232
  },
  "hsl": {
    "h": 277.647,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61773,
    "c": 0.22676,
    "h": 310.2
  },
  "luminance": 0.20532
}

Semantic roles & 50–950 ramp

primary
#AF4FE8
secondary
#C2E6AD
accent
#D90C59
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF4FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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