#A235F6#A235F6

#A235F6 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.7% C 0.265 H 304.8°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#A235F6
RGBrgb(162, 53, 246)
HSLhsl(274, 91%, 59%)
HSVhsv(274, 78%, 96%)
CMYKcmyk(34.1%, 78.5%, 0%, 3.5%)
CIE-LABlab(48.11, 74.39, -76.25)
CIE-LCHlch(48.11, 106.53, 314.29°)
OKLaboklab(58.66% 0.1508 -0.2174)
OKLCHoklch(58.66% 0.265 304.8)
XYZxyz(32.8041, 16.8816, 88.7012)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A235F6 #89F635
analogous
#4135F6 #A235F6 #F635E9
triadic
#A235F6 #F6A235 #35F6A2
tetradic
#A235F6 #F64135 #89F635 #35E9F6
square
#A235F6 #F64135 #89F635 #35E9F6
split-complementary
#A235F6 #E9F635 #35F641
monochromatic
#6308A9 #850AE4 #A235F6 #BD70F9 #D8AAFB

Accessibility & contrast

On white

4.80
#A235F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#A235F6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A235F6
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A235F6#FFFFFF#000000##FFFFFF
##A235F61.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070FB
Deuteranopia (green-blind)
#0072F2
Tritanopia (blue-blind)
#926996
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a235f6;
/* rgb */ color: rgb(162, 53, 246);
/* oklch */ color: oklch(58.7% 0.265 304.8);
Tailwind
colors: {
  custom: {
    50: '#c579fa',
    500: '#a235f6',
    950: '#000000',
  },
}
SCSS
$custom: #a235f6;
$custom-light: #c579fa;
$custom-dark: #000000;
JSON
{
  "hex": "#a235f6",
  "rgb": {
    "r": 162,
    "g": 53,
    "b": 246
  },
  "hsl": {
    "h": 273.886,
    "s": 91.469,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58662,
    "c": 0.26456,
    "h": 304.8
  },
  "luminance": 0.16881
}

Semantic roles & 50–950 ramp

primary
#A235F6
secondary
#BEEA9D
accent
#FF2986
background
#FCF7FF
surface
#F9EEFF
border
#D2C9D7
text
#140A18
muted
#827C86

Preview Lab

Preview with #A235F6

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

Preview Lab → · Contrast checker → · Palette generator →

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