#812298#812298

#812298 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.189 H 318.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#812298
RGBrgb(129, 34, 152)
HSLhsl(288, 63%, 36%)
HSVhsv(288, 78%, 60%)
CMYKcmyk(15.1%, 77.6%, 0%, 40.4%)
CIE-LABlab(34.15, 55.79, -44.33)
CIE-LCHlch(34.15, 71.26, 321.53°)
OKLaboklab(45.71% 0.1424 -0.1246)
OKLCHoklch(45.71% 0.189 318.8)
XYZxyz(15.2920, 8.0789, 30.4536)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#812298 #399822
analogous
#462298 #812298 #982274
triadic
#812298 #988122 #229881
tetradic
#812298 #984622 #399822 #227498
square
#812298 #984622 #399822 #227498
split-complementary
#812298 #749822 #229846
monochromatic
#2C0C34 #571766 #812298 #AB2DCA #C15ADA

Accessibility & contrast

On white

8.03
#812298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#812298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #812298
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##812298#FFFFFF#000000##FFFFFF
##8122981.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#2A5395
Tritanopia (blue-blind)
#813B5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #812298;
/* rgb */ color: rgb(129, 34, 152);
/* oklch */ color: oklch(45.7% 0.189 318.8);
Tailwind
colors: {
  custom: {
    50: '#a968b7',
    500: '#812298',
    950: '#000000',
  },
}
SCSS
$custom: #812298;
$custom-light: #a968b7;
$custom-dark: #000000;
JSON
{
  "hex": "#812298",
  "rgb": {
    "r": 129,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 288.305,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45708,
    "c": 0.18917,
    "h": 318.8
  },
  "luminance": 0.08078
}

Semantic roles & 50–950 ramp

primary
#812298
secondary
#6BBE57
accent
#E64162
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #812298

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

Preview Lab → · Contrast checker → · Palette generator →

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