#B398FC#B398FC

#B398FC is a light, vivid violet. Relative luminance 0.391; OKLCH L 74.3% C 0.143 H 295.1°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#B398FC
RGBrgb(179, 152, 252)
HSLhsl(256, 94%, 79%)
HSVhsv(256, 40%, 99%)
CMYKcmyk(29%, 39.7%, 0%, 1.2%)
CIE-LABlab(68.80, 30.95, -46.31)
CIE-LCHlch(68.80, 55.70, 303.75°)
OKLaboklab(74.33% 0.0607 -0.1295)
OKLCHoklch(74.33% 0.143 295.1)
XYZxyz(47.3850, 39.0678, 97.1209)
Luminance0.3907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B398FC #E1FC98
analogous
#98AFFC #B398FC #E598FC
triadic
#B398FC #FCB398 #98FCB3
tetradic
#B398FC #FC98AF #E1FC98 #98FCE5
square
#B398FC #FC98AF #E1FC98 #98FCE5
split-complementary
#B398FC #FCE598 #AFFC98
monochromatic
#5B21F9 #875DFA #B398FC #DFD3FE #E9E1FE

Accessibility & contrast

On white

2.38
#B398FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#B398FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B398FC
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B398FC#FFFFFF#000000##000000
##B398FC1.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA9FF
Deuteranopia (green-blind)
#7FA6F9
Tritanopia (blue-blind)
#A3AABE
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b398fc;
/* rgb */ color: rgb(179, 152, 252);
/* oklch */ color: oklch(74.3% 0.143 295.1);
Tailwind
colors: {
  custom: {
    50: '#ccb6fe',
    500: '#b398fc',
    950: '#000000',
  },
}
SCSS
$custom: #b398fc;
$custom-light: #ccb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b398fc",
  "rgb": {
    "r": 179,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 256.2,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.74332,
    "c": 0.14301,
    "h": 295.1
  },
  "luminance": 0.39068
}

Semantic roles & 50–950 ramp

primary
#B398FC
secondary
#EDF6D5
accent
#E600A8
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B398FC

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

Preview Lab → · Contrast checker → · Palette generator →

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