#AF45FF#AF45FF

#AF45FF is a light, highly saturated violet. Relative luminance 0.206; OKLCH L 62.3% C 0.260 H 306.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF45FF
RGBrgb(175, 69, 255)
HSLhsl(274, 100%, 64%)
HSVhsv(274, 73%, 100%)
CMYKcmyk(31.4%, 72.9%, 0%, 0%)
CIE-LABlab(52.50, 72.62, -74.06)
CIE-LCHlch(52.50, 103.72, 314.44°)
OKLaboklab(62.31% 0.1531 -0.2106)
OKLCHoklch(62.31% 0.26 306)
XYZxyz(37.8533, 20.5905, 96.5686)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45FF #95FF45
analogous
#5245FF #AF45FF #FF45F2
triadic
#AF45FF #FFAF45 #45FFAF
tetradic
#AF45FF #FF5245 #95FF45 #45F2FF
square
#AF45FF #FF5245 #95FF45 #45F2FF
split-complementary
#AF45FF #F2FF45 #45FF52
monochromatic
#7300CA #9508FF #AF45FF #C982FF #E4BFFF

Accessibility & contrast

On white

4.10
#AF45FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#AF45FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45FF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45FF#FFFFFF#000000##000000
##AF45FF1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFF
Deuteranopia (green-blind)
#007EFB
Tritanopia (blue-blind)
#A1729F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af45ff;
/* rgb */ color: rgb(175, 69, 255);
/* oklch */ color: oklch(62.3% 0.260 306.0);
Tailwind
colors: {
  custom: {
    50: '#cd82ff',
    500: '#af45ff',
    950: '#000000',
  },
}
SCSS
$custom: #af45ff;
$custom-light: #cd82ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af45ff",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 255
  },
  "hsl": {
    "h": 274.194,
    "s": 100,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62308,
    "c": 0.26036,
    "h": 306
  },
  "luminance": 0.2059
}

Semantic roles & 50–950 ramp

primary
#AF45FF
secondary
#CBF1AF
accent
#E60063
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140B18
muted
#837C86

Preview Lab

Preview with #AF45FF

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

Preview Lab → · Contrast checker → · Palette generator →

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