#A238DD#A238DD

#A238DD is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 57.0% C 0.239 H 310.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A238DD
RGBrgb(162, 56, 221)
HSLhsl(279, 71%, 54%)
HSVhsv(279, 75%, 87%)
CMYKcmyk(26.7%, 74.7%, 0%, 13.3%)
CIE-LABlab(46.62, 68.09, -64.55)
CIE-LCHlch(46.62, 93.83, 316.53°)
OKLaboklab(57.04% 0.1539 -0.183)
OKLCHoklch(57.04% 0.239 310.1)
XYZxyz(29.3630, 15.7308, 69.8821)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238DD #73DD38
analogous
#5038DD #A238DD #DD38C6
triadic
#A238DD #DDA238 #38DDA2
tetradic
#A238DD #DD5038 #73DD38 #38C6DD
square
#A238DD #DD5038 #73DD38 #38C6DD
split-complementary
#A238DD #C6DD38 #38DD50
monochromatic
#5D1784 #821FB8 #A238DD #BA6CE6 #D3A1EF

Accessibility & contrast

On white

5.07
#A238DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#A238DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238DD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238DD#FFFFFF#000000##FFFFFF
##A238DD1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#0670DA
Tritanopia (blue-blind)
#9A5F89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a238dd;
/* rgb */ color: rgb(162, 56, 221);
/* oklch */ color: oklch(57.0% 0.239 310.1);
Tailwind
colors: {
  custom: {
    50: '#c379e8',
    500: '#a238dd',
    950: '#000000',
  },
}
SCSS
$custom: #a238dd;
$custom-light: #c379e8;
$custom-dark: #000000;
JSON
{
  "hex": "#a238dd",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 221
  },
  "hsl": {
    "h": 278.545,
    "s": 70.815,
    "l": 54.314
  },
  "oklch": {
    "l": 0.57037,
    "c": 0.23912,
    "h": 310.1
  },
  "luminance": 0.1573
}

Semantic roles & 50–950 ramp

primary
#A238DD
secondary
#AEDB95
accent
#EE3A7A
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A238DD

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

Preview Lab → · Contrast checker → · Palette generator →

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