#AF4FE6#AF4FE6

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

Color values

HEX#AF4FE6
RGBrgb(175, 79, 230)
HSLhsl(278, 75%, 61%)
HSVhsv(278, 66%, 90%)
CMYKcmyk(23.9%, 65.7%, 0%, 9.8%)
CIE-LABlab(52.31, 63.11, -60.38)
CIE-LCHlch(52.31, 87.34, 316.27°)
OKLaboklab(61.64% 0.1466 -0.1705)
OKLCHoklch(61.64% 0.225 310.7)
XYZxyz(34.7554, 20.4199, 76.9581)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FE6 #86E64F
analogous
#644FE6 #AF4FE6 #E64FD1
triadic
#AF4FE6 #E6AF4F #4FE6AF
tetradic
#AF4FE6 #E6644F #86E64F #4FD1E6
square
#AF4FE6 #E6644F #86E64F #4FD1E6
split-complementary
#AF4FE6 #D1E64F #4FE664
monochromatic
#7017A3 #951FD9 #AF4FE6 #C785EE #E0BAF5

Accessibility & contrast

On white

4.13
#AF4FE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4FE6#FFFFFF#000000##000000
##AF4FE61.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EB
Deuteranopia (green-blind)
#3B7EE3
Tritanopia (blue-blind)
#A86E94
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4fe6;
/* rgb */ color: rgb(175, 79, 230);
/* oklch */ color: oklch(61.6% 0.225 310.7);
Tailwind
colors: {
  custom: {
    50: '#cb87ef',
    500: '#af4fe6',
    950: '#000000',
  },
}
SCSS
$custom: #af4fe6;
$custom-light: #cb87ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fe6",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 230
  },
  "hsl": {
    "h": 278.146,
    "s": 75.124,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61643,
    "c": 0.2248,
    "h": 310.7
  },
  "luminance": 0.20419
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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