#A238B7#A238B7

#A238B7 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.5% C 0.205 H 320.5°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#A238B7
RGBrgb(162, 56, 183)
HSLhsl(290, 53%, 47%)
HSVhsv(290, 69%, 72%)
CMYKcmyk(11.5%, 69.4%, 0%, 28.2%)
CIE-LABlab(44.13, 60.57, -46.58)
CIE-LCHlch(44.13, 76.41, 322.44°)
OKLaboklab(54.48% 0.1583 -0.1303)
OKLCHoklch(54.48% 0.205 320.5)
XYZxyz(24.8607, 13.9299, 46.1698)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238B7 #4DB738
analogous
#6338B7 #A238B7 #B7388D
triadic
#A238B7 #B7A238 #38B7A2
tetradic
#A238B7 #B76338 #4DB738 #388DB7
square
#A238B7 #B76338 #4DB738 #388DB7
split-complementary
#A238B7 #8DB738 #38B763
monochromatic
#4F1B59 #792A88 #A238B7 #BB5ECE #CF8DDC

Accessibility & contrast

On white

5.55
#A238B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#A238B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238B7
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238B7#FFFFFF#000000##FFFFFF
##A238B71.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#456CB4
Tritanopia (blue-blind)
#A34F73
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a238b7;
/* rgb */ color: rgb(162, 56, 183);
/* oklch */ color: oklch(54.5% 0.205 320.5);
Tailwind
colors: {
  custom: {
    50: '#c178cd',
    500: '#a238b7',
    950: '#000000',
  },
}
SCSS
$custom: #a238b7;
$custom-light: #c178cd;
$custom-dark: #000000;
JSON
{
  "hex": "#a238b7",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 290.079,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54479,
    "c": 0.20499,
    "h": 320.5
  },
  "luminance": 0.13929
}

Semantic roles & 50–950 ramp

primary
#A238B7
secondary
#8FC784
accent
#DD4B63
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130913
muted
#827B82

Preview Lab

Preview with #A238B7

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

Preview Lab → · Contrast checker → · Palette generator →

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