#874FAC#874FAC

#874FAC is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.3% C 0.149 H 310.1°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#874FAC
RGBrgb(135, 79, 172)
HSLhsl(276, 37%, 49%)
HSVhsv(276, 54%, 67%)
CMYKcmyk(21.5%, 54.1%, 0%, 32.5%)
CIE-LABlab(43.83, 40.65, -40.80)
CIE-LCHlch(43.83, 57.59, 314.89°)
OKLaboklab(53.28% 0.0962 -0.1143)
OKLCHoklch(53.28% 0.149 310.1)
XYZxyz(20.2327, 13.7218, 40.6044)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FAC #74AC4F
analogous
#594FAC #874FAC #AC4FA3
triadic
#874FAC #AC874F #4FAC87
tetradic
#874FAC #AC594F #74AC4F #4FA3AC
square
#874FAC #AC594F #74AC4F #4FA3AC
split-complementary
#874FAC #A3AC4F #4FAC59
monochromatic
#452858 #663C82 #874FAC #A477C1 #C0A1D4

Accessibility & contrast

On white

5.61
#874FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#874FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FAC
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FAC#FFFFFF#000000##FFFFFF
##874FAC1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3465AF
Deuteranopia (green-blind)
#4769AA
Tritanopia (blue-blind)
#825F76
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #874fac;
/* rgb */ color: rgb(135, 79, 172);
/* oklch */ color: oklch(53.3% 0.149 310.1);
Tailwind
colors: {
  custom: {
    50: '#ac82c5',
    500: '#874fac',
    950: '#000000',
  },
}
SCSS
$custom: #874fac;
$custom-light: #ac82c5;
$custom-dark: #000000;
JSON
{
  "hex": "#874fac",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 276.129,
    "s": 37.052,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53284,
    "c": 0.14941,
    "h": 310.1
  },
  "luminance": 0.13721
}

Semantic roles & 50–950 ramp

primary
#874FAC
secondary
#A7C196
accent
#CD5B88
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #874FAC

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

Preview Lab → · Contrast checker → · Palette generator →

#874FAC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva