#AF4BEC#AF4BEC

#AF4BEC is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.6% C 0.236 H 309.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF4BEC
RGBrgb(175, 75, 236)
HSLhsl(277, 81%, 61%)
HSVhsv(277, 68%, 93%)
CMYKcmyk(25.8%, 68.2%, 0%, 7.5%)
CIE-LABlab(52.07, 66.13, -64.15)
CIE-LCHlch(52.07, 92.13, 315.87°)
OKLaboklab(61.59% 0.1502 -0.1815)
OKLCHoklch(61.59% 0.236 309.6)
XYZxyz(35.3326, 20.2029, 81.3789)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BEC #88EC4B
analogous
#5E4BEC #AF4BEC #EC4BD9
triadic
#AF4BEC #ECAF4B #4BECAF
tetradic
#AF4BEC #EC5E4B #88EC4B #4BD9EC
square
#AF4BEC #EC5E4B #88EC4B #4BD9EC
split-complementary
#AF4BEC #D9EC4B #4BEC5E
monochromatic
#7112AB #9518E2 #AF4BEC #C882F2 #E0BAF8

Accessibility & contrast

On white

4.17
#AF4BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AF4BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BEC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BEC#FFFFFF#000000##000000
##AF4BEC1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#2E7EE8
Tritanopia (blue-blind)
#A66E96
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4bec;
/* rgb */ color: rgb(175, 75, 236);
/* oklch */ color: oklch(61.6% 0.236 309.6);
Tailwind
colors: {
  custom: {
    50: '#cc85f3',
    500: '#af4bec',
    950: '#000000',
  },
}
SCSS
$custom: #af4bec;
$custom-light: #cc85f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af4bec",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 236
  },
  "hsl": {
    "h": 277.267,
    "s": 80.905,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61591,
    "c": 0.23561,
    "h": 309.6
  },
  "luminance": 0.20202
}

Semantic roles & 50–950 ramp

primary
#AF4BEC
secondary
#C2E8AB
accent
#DD0859
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF4BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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