#AF4FEA#AF4FEA

#AF4FEA is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.9% C 0.229 H 309.7°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF4FEA
RGBrgb(175, 79, 234)
HSLhsl(277, 79%, 61%)
HSVhsv(277, 66%, 92%)
CMYKcmyk(25.2%, 66.2%, 0%, 8.2%)
CIE-LABlab(52.56, 63.96, -62.22)
CIE-LCHlch(52.56, 89.24, 315.79°)
OKLaboklab(61.91% 0.1462 -0.1759)
OKLCHoklch(61.91% 0.229 309.7)
XYZxyz(35.3235, 20.6471, 79.9504)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FEA #8AEA4F
analogous
#624FEA #AF4FEA #EA4FD8
triadic
#AF4FEA #EAAF4F #4FEAAF
tetradic
#AF4FEA #EA624F #8AEA4F #4FD8EA
square
#AF4FEA #EA624F #8AEA4F #4FD8EA
split-complementary
#AF4FEA #D8EA4F #4FEA62
monochromatic
#7114AA #961BE1 #AF4FEA #C886F1 #E1BCF7

Accessibility & contrast

On white

4.09
#AF4FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AF4FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FEA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FEA#FFFFFF#000000##000000
##AF4FEA1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EF
Deuteranopia (green-blind)
#367FE7
Tritanopia (blue-blind)
#A77096
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4fea;
/* rgb */ color: rgb(175, 79, 234);
/* oklch */ color: oklch(61.9% 0.229 309.7);
Tailwind
colors: {
  custom: {
    50: '#cb87f1',
    500: '#af4fea',
    950: '#000000',
  },
}
SCSS
$custom: #af4fea;
$custom-light: #cb87f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fea",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 234
  },
  "hsl": {
    "h": 277.161,
    "s": 78.68,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61905,
    "c": 0.22872,
    "h": 309.7
  },
  "luminance": 0.20646
}

Semantic roles & 50–950 ramp

primary
#AF4FEA
secondary
#C3E7AD
accent
#DB0B5A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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