#A298FA#A298FA

#A298FA is a light, vivid blue. Relative luminance 0.370; OKLCH L 72.8% C 0.140 H 287.1°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#A298FA
RGBrgb(162, 152, 250)
HSLhsl(246, 91%, 79%)
HSVhsv(246, 39%, 98%)
CMYKcmyk(35.2%, 39.2%, 0%, 2%)
CIE-LABlab(67.31, 25.88, -47.67)
CIE-LCHlch(67.31, 54.25, 298.50°)
OKLaboklab(72.82% 0.0411 -0.1338)
OKLCHoklch(72.82% 0.14 287.1)
XYZxyz(43.3792, 37.0387, 95.2876)
Luminance0.3704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A298FA #F0FA98
analogous
#98BFFA #A298FA #D398FA
triadic
#A298FA #FAA298 #98FAA2
tetradic
#A298FA #FA98BF #F0FA98 #98FAD3
square
#A298FA #FA98BF #F0FA98 #98FAD3
split-complementary
#A298FA #FAD398 #BFFA98
monochromatic
#3923F4 #6D5EF7 #A298FA #D7D2FD #E5E2FE

Accessibility & contrast

On white

2.50
#A298FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#A298FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A298FA
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A298FA#FFFFFF#000000##000000
##A298FA1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A6FE
Deuteranopia (green-blind)
#77A1F8
Tritanopia (blue-blind)
#8BABBD
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a298fa;
/* rgb */ color: rgb(162, 152, 250);
/* oklch */ color: oklch(72.8% 0.140 287.1);
Tailwind
colors: {
  custom: {
    50: '#c0b6fc',
    500: '#a298fa',
    950: '#000000',
  },
}
SCSS
$custom: #a298fa;
$custom-light: #c0b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#a298fa",
  "rgb": {
    "r": 162,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 246.122,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.72825,
    "c": 0.13995,
    "h": 287.1
  },
  "luminance": 0.3704
}

Semantic roles & 50–950 ramp

primary
#A298FA
secondary
#F2F6D5
accent
#E600CE
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#121117
muted
#818085

Preview Lab

Preview with #A298FA

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

Preview Lab → · Contrast checker → · Palette generator →

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