#AF4EE7#AF4EE7

#AF4EE7 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.6% C 0.227 H 310.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AF4EE7
RGBrgb(175, 78, 231)
HSLhsl(278, 76%, 61%)
HSVhsv(278, 66%, 91%)
CMYKcmyk(24.2%, 66.2%, 0%, 9.4%)
CIE-LABlab(52.21, 63.77, -61.10)
CIE-LCHlch(52.21, 88.31, 316.22°)
OKLaboklab(61.59% 0.1475 -0.1726)
OKLCHoklch(61.59% 0.227 310.5)
XYZxyz(34.8246, 20.3330, 77.6760)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EE7 #86E74E
analogous
#624EE7 #AF4EE7 #E74ED2
triadic
#AF4EE7 #E7AF4E #4EE7AF
tetradic
#AF4EE7 #E7624E #86E74E #4ED2E7
square
#AF4EE7 #E7624E #86E74E #4ED2E7
split-complementary
#AF4EE7 #D2E74E #4EE762
monochromatic
#7016A4 #951EDA #AF4EE7 #C784EE #E0BAF6

Accessibility & contrast

On white

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

On black

5.07
#AF4EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EE7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EE7#FFFFFF#000000##000000
##AF4EE71.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EC
Deuteranopia (green-blind)
#397EE4
Tritanopia (blue-blind)
#A86E94
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4ee7;
/* rgb */ color: rgb(175, 78, 231);
/* oklch */ color: oklch(61.6% 0.227 310.5);
Tailwind
colors: {
  custom: {
    50: '#cb86ef',
    500: '#af4ee7',
    950: '#000000',
  },
}
SCSS
$custom: #af4ee7;
$custom-light: #cb86ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ee7",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 231
  },
  "hsl": {
    "h": 278.039,
    "s": 76.119,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61593,
    "c": 0.22705,
    "h": 310.5
  },
  "luminance": 0.20332
}

Semantic roles & 50–950 ramp

primary
#AF4EE7
secondary
#C1E5AB
accent
#D80D58
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF4EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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