#AF4FE7#AF4FE7

#AF4FE7 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.7% C 0.226 H 310.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF4FE7
RGBrgb(175, 79, 231)
HSLhsl(278, 76%, 61%)
HSVhsv(278, 66%, 91%)
CMYKcmyk(24.2%, 65.8%, 0%, 9.4%)
CIE-LABlab(52.37, 63.32, -60.84)
CIE-LCHlch(52.37, 87.82, 316.14°)
OKLaboklab(61.71% 0.1465 -0.1718)
OKLCHoklch(61.71% 0.226 310.4)
XYZxyz(34.8962, 20.4762, 77.6998)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FE7 #87E74F
analogous
#634FE7 #AF4FE7 #E74FD3
triadic
#AF4FE7 #E7AF4F #4FE7AF
tetradic
#AF4FE7 #E7634F #87E74F #4FD3E7
square
#AF4FE7 #E7634F #87E74F #4FD3E7
split-complementary
#AF4FE7 #D3E74F #4FE763
monochromatic
#7117A5 #951EDB #AF4FE7 #C785EE #E0BBF6

Accessibility & contrast

On white

4.12
#AF4FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AF4FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FE7
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FE7#FFFFFF#000000##000000
##AF4FE71.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#3A7FE4
Tritanopia (blue-blind)
#A86E95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4fe7;
/* rgb */ color: rgb(175, 79, 231);
/* oklch */ color: oklch(61.7% 0.226 310.4);
Tailwind
colors: {
  custom: {
    50: '#cb87ef',
    500: '#af4fe7',
    950: '#000000',
  },
}
SCSS
$custom: #af4fe7;
$custom-light: #cb87ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fe7",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 231
  },
  "hsl": {
    "h": 277.895,
    "s": 76,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61708,
    "c": 0.22578,
    "h": 310.4
  },
  "luminance": 0.20475
}

Semantic roles & 50–950 ramp

primary
#AF4FE7
secondary
#C1E6AC
accent
#D80D58
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF4FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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