#AF4EE6#AF4EE6

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

Color values

HEX#AF4EE6
RGBrgb(175, 78, 230)
HSLhsl(278, 75%, 60%)
HSVhsv(278, 66%, 90%)
CMYKcmyk(23.9%, 66.1%, 0%, 9.8%)
CIE-LABlab(52.15, 63.56, -60.64)
CIE-LCHlch(52.15, 87.84, 316.35°)
OKLaboklab(61.53% 0.1476 -0.1712)
OKLCHoklch(61.53% 0.226 310.8)
XYZxyz(34.6838, 20.2767, 76.9343)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EE6 #85E64E
analogous
#634EE6 #AF4EE6 #E64ED1
triadic
#AF4EE6 #E6AF4E #4EE6AF
tetradic
#AF4EE6 #E6634E #85E64E #4ED1E6
square
#AF4EE6 #E6634E #85E64E #4ED1E6
split-complementary
#AF4EE6 #D1E64E #4EE663
monochromatic
#7017A3 #951FD8 #AF4EE6 #C784EE #DFB9F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4EE6#FFFFFF#000000##000000
##AF4EE61.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)
#0078EB
Deuteranopia (green-blind)
#3A7EE3
Tritanopia (blue-blind)
#A86D94
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4ee6;
/* rgb */ color: rgb(175, 78, 230);
/* oklch */ color: oklch(61.5% 0.226 310.8);
Tailwind
colors: {
  custom: {
    50: '#cb86ef',
    500: '#af4ee6',
    950: '#000000',
  },
}
SCSS
$custom: #af4ee6;
$custom-light: #cb86ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ee6",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 230
  },
  "hsl": {
    "h": 278.289,
    "s": 75.248,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61528,
    "c": 0.22607,
    "h": 310.8
  },
  "luminance": 0.20276
}

Semantic roles & 50–950 ramp

primary
#AF4EE6
secondary
#C0E5AB
accent
#D70E57
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4EE6

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

Preview Lab → · Contrast checker → · Palette generator →

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