#A240DB#A240DB

#A240DB is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.7% C 0.229 H 310.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#A240DB
RGBrgb(162, 64, 219)
HSLhsl(278, 68%, 55%)
HSVhsv(278, 71%, 86%)
CMYKcmyk(26%, 70.8%, 0%, 14.1%)
CIE-LABlab(47.58, 64.56, -61.86)
CIE-LCHlch(47.58, 89.42, 316.22°)
OKLaboklab(57.67% 0.1468 -0.1751)
OKLCHoklch(57.67% 0.229 310)
XYZxyz(29.5174, 16.4633, 68.6269)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240DB #79DB40
analogous
#5440DB #A240DB #DB40C7
triadic
#A240DB #DBA240 #40DBA2
tetradic
#A240DB #DB5440 #79DB40 #40C7DB
square
#A240DB #DB5440 #79DB40 #40C7DB
split-complementary
#A240DB #C7DB40 #40DB54
monochromatic
#5F1987 #8323BB #A240DB #BB73E5 #D4A7EE

Accessibility & contrast

On white

4.89
#A240DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#A240DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240DB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240DB#FFFFFF#000000##FFFFFF
##A240DB1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#2172D8
Tritanopia (blue-blind)
#9A638A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a240db;
/* rgb */ color: rgb(162, 64, 219);
/* oklch */ color: oklch(57.7% 0.229 310.0);
Tailwind
colors: {
  custom: {
    50: '#c27de7',
    500: '#a240db',
    950: '#000000',
  },
}
SCSS
$custom: #a240db;
$custom-light: #c27de7;
$custom-dark: #000000;
JSON
{
  "hex": "#a240db",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 277.935,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57671,
    "c": 0.22853,
    "h": 310
  },
  "luminance": 0.16463
}

Semantic roles & 50–950 ramp

primary
#A240DB
secondary
#B3DC9B
accent
#EB3D7D
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A240DB

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

Preview Lab → · Contrast checker → · Palette generator →

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