#AF94F2#AF94F2

#AF94F2 is a light, vivid violet. Relative luminance 0.367; OKLCH L 72.8% C 0.136 H 296.1°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#AF94F2
RGBrgb(175, 148, 242)
HSLhsl(257, 78%, 76%)
HSVhsv(257, 39%, 95%)
CMYKcmyk(27.7%, 38.8%, 0%, 5.1%)
CIE-LABlab(67.05, 29.65, -43.62)
CIE-LCHlch(67.05, 52.74, 304.21°)
OKLaboklab(72.77% 0.0596 -0.1217)
OKLCHoklch(72.77% 0.136 296.1)
XYZxyz(44.2923, 36.7041, 88.7383)
Luminance0.3670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF94F2 #D7F294
analogous
#94A8F2 #AF94F2 #DE94F2
triadic
#AF94F2 #F2AF94 #94F2AF
tetradic
#AF94F2 #F294A8 #D7F294 #94F2DE
square
#AF94F2 #F294A8 #D7F294 #94F2DE
split-complementary
#AF94F2 #F2DE94 #A8F294
monochromatic
#5D27E5 #865DEB #AF94F2 #D8CBF9 #EBE4FC

Accessibility & contrast

On white

2.52
#AF94F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#AF94F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF94F2
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF94F2#FFFFFF#000000##000000
##AF94F21.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA4F6
Deuteranopia (green-blind)
#7EA2F0
Tritanopia (blue-blind)
#A1A4B8
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #af94f2;
/* rgb */ color: rgb(175, 148, 242);
/* oklch */ color: oklch(72.8% 0.136 296.1);
Tailwind
colors: {
  custom: {
    50: '#c9b3f6',
    500: '#af94f2',
    950: '#000000',
  },
}
SCSS
$custom: #af94f2;
$custom-light: #c9b3f6;
$custom-dark: #000000;
JSON
{
  "hex": "#af94f2",
  "rgb": {
    "r": 175,
    "g": 148,
    "b": 242
  },
  "hsl": {
    "h": 257.234,
    "s": 78.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72774,
    "c": 0.13556,
    "h": 296.1
  },
  "luminance": 0.36705
}

Semantic roles & 50–950 ramp

primary
#AF94F2
secondary
#EBF3D8
accent
#DB0B9F
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131117
muted
#828085

Preview Lab

Preview with #AF94F2

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

Preview Lab → · Contrast checker → · Palette generator →

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