#942796#942796

#942796 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.191 H 327.2°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#942796
RGBrgb(148, 39, 150)
HSLhsl(299, 59%, 37%)
HSVhsv(299, 74%, 59%)
CMYKcmyk(1.3%, 74%, 0%, 41.2%)
CIE-LABlab(37.75, 57.77, -37.17)
CIE-LCHlch(37.75, 68.70, 327.24°)
OKLaboklab(48.85% 0.1602 -0.1031)
OKLCHoklch(48.85% 0.191 327.2)
XYZxyz(18.4430, 9.9502, 29.7974)
Luminance0.0995 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942796 #299627
analogous
#5D2796 #942796 #962761
triadic
#942796 #969427 #279694
tetradic
#942796 #965D27 #299627 #276196
square
#942796 #965D27 #299627 #276196
split-complementary
#942796 #619627 #27965D
monochromatic
#340E35 #641A65 #942796 #C434C7 #D461D6

Accessibility & contrast

On white

7.02
#942796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#942796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #942796
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942796#FFFFFF#000000##FFFFFF
##9427961.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5099
Deuteranopia (green-blind)
#435E93
Tritanopia (blue-blind)
#98395C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #942796;
/* rgb */ color: rgb(148, 39, 150);
/* oklch */ color: oklch(48.8% 0.191 327.2);
Tailwind
colors: {
  custom: {
    50: '#b76db5',
    500: '#942796',
    950: '#000000',
  },
}
SCSS
$custom: #942796;
$custom-light: #b76db5;
$custom-dark: #000000;
JSON
{
  "hex": "#942796",
  "rgb": {
    "r": 148,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 298.919,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48848,
    "c": 0.19054,
    "h": 327.2
  },
  "luminance": 0.09949
}

Semantic roles & 50–950 ramp

primary
#942796
secondary
#5FBC5D
accent
#E24649
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #942796

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

Preview Lab → · Contrast checker → · Palette generator →

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