#942795#942795

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

Color values

HEX#942795
RGBrgb(148, 39, 149)
HSLhsl(299, 59%, 37%)
HSVhsv(299, 74%, 58%)
CMYKcmyk(0.7%, 73.8%, 0%, 41.6%)
CIE-LABlab(37.70, 57.60, -36.65)
CIE-LCHlch(37.70, 68.28, 327.53°)
OKLaboklab(48.79% 0.1602 -0.1016)
OKLCHoklch(48.79% 0.19 327.6)
XYZxyz(18.3628, 9.9182, 29.3752)
Luminance0.0992 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#942795 #289527
analogous
#5D2795 #942795 #95275F
triadic
#942795 #959427 #279594
tetradic
#942795 #955D27 #289527 #275F95
square
#942795 #955D27 #289527 #275F95
split-complementary
#942795 #5F9527 #27955D
monochromatic
#340E34 #641A64 #942795 #C434C6 #D561D6

Accessibility & contrast

On white

7.04
#942795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#942795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #942795
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##942795#FFFFFF#000000##FFFFFF
##9427951.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5098
Deuteranopia (green-blind)
#445E92
Tritanopia (blue-blind)
#99385C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #942795;
/* rgb */ color: rgb(148, 39, 149);
/* oklch */ color: oklch(48.8% 0.190 327.6);
Tailwind
colors: {
  custom: {
    50: '#b76db4',
    500: '#942795',
    950: '#000000',
  },
}
SCSS
$custom: #942795;
$custom-light: #b76db4;
$custom-dark: #000000;
JSON
{
  "hex": "#942795",
  "rgb": {
    "r": 148,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 299.455,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48788,
    "c": 0.18974,
    "h": 327.6
  },
  "luminance": 0.09917
}

Semantic roles & 50–950 ramp

primary
#942795
secondary
#5EBB5D
accent
#E24647
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #942795

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

Preview Lab → · Contrast checker → · Palette generator →

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