#AF4EE8#AF4EE8

#AF4EE8 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.7% C 0.228 H 310.3°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AF4EE8
RGBrgb(175, 78, 232)
HSLhsl(278, 77%, 61%)
HSVhsv(278, 66%, 91%)
CMYKcmyk(24.6%, 66.4%, 0%, 9%)
CIE-LABlab(52.27, 63.98, -61.56)
CIE-LCHlch(52.27, 88.79, 316.10°)
OKLaboklab(61.66% 0.1475 -0.1739)
OKLCHoklch(61.66% 0.228 310.3)
XYZxyz(34.9663, 20.3897, 78.4219)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EE8 #87E84E
analogous
#624EE8 #AF4EE8 #E84ED4
triadic
#AF4EE8 #E8AF4E #4EE8AF
tetradic
#AF4EE8 #E8624E #87E84E #4ED4E8
square
#AF4EE8 #E8624E #87E84E #4ED4E8
split-complementary
#AF4EE8 #D4E84E #4EE862
monochromatic
#7116A6 #951DDC #AF4EE8 #C784EF #E0BAF6

Accessibility & contrast

On white

4.14
#AF4EE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#AF4EE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EE8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EE8#FFFFFF#000000##000000
##AF4EE81.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078ED
Deuteranopia (green-blind)
#387EE5
Tritanopia (blue-blind)
#A76E95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4ee8;
/* rgb */ color: rgb(175, 78, 232);
/* oklch */ color: oklch(61.7% 0.228 310.3);
Tailwind
colors: {
  custom: {
    50: '#cb86f0',
    500: '#af4ee8',
    950: '#000000',
  },
}
SCSS
$custom: #af4ee8;
$custom-light: #cb86f0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ee8",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 232
  },
  "hsl": {
    "h": 277.792,
    "s": 77,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61659,
    "c": 0.22803,
    "h": 310.3
  },
  "luminance": 0.20389
}

Semantic roles & 50–950 ramp

primary
#AF4EE8
secondary
#C1E6AC
accent
#D90C58
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF4EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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