#9438E2#9438E2

#9438E2 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.7% C 0.240 H 304.0°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9438E2
RGBrgb(148, 56, 226)
HSLhsl(272, 75%, 55%)
HSVhsv(272, 75%, 89%)
CMYKcmyk(34.5%, 75.2%, 0%, 11.4%)
CIE-LABlab(45.10, 66.73, -69.95)
CIE-LCHlch(45.10, 96.67, 313.65°)
OKLaboklab(55.69% 0.1344 -0.1993)
OKLCHoklch(55.69% 0.24 304)
XYZxyz(27.3512, 14.6153, 73.3169)
Luminance0.1462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9438E2 #86E238
analogous
#3F38E2 #9438E2 #E238DB
triadic
#9438E2 #E29438 #38E294
tetradic
#9438E2 #E23F38 #86E238 #38DBE2
square
#9438E2 #E23F38 #86E238 #38DBE2
split-complementary
#9438E2 #DBE238 #38E23F
monochromatic
#55148B #751CC1 #9438E2 #B16DEA #CDA3F2

Accessibility & contrast

On white

5.35
#9438E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9438E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9438E2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9438E2#FFFFFF#000000##FFFFFF
##9438E21.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#006BDF
Tritanopia (blue-blind)
#85638B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9438e2;
/* rgb */ color: rgb(148, 56, 226);
/* oklch */ color: oklch(55.7% 0.240 304.0);
Tailwind
colors: {
  custom: {
    50: '#ba78ec',
    500: '#9438e2',
    950: '#000000',
  },
}
SCSS
$custom: #9438e2;
$custom-light: #ba78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9438e2",
  "rgb": {
    "r": 148,
    "g": 56,
    "b": 226
  },
  "hsl": {
    "h": 272.471,
    "s": 74.561,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55689,
    "c": 0.2404,
    "h": 304
  },
  "luminance": 0.14615
}

Semantic roles & 50–950 ramp

primary
#9438E2
secondary
#B8DE97
accent
#F1378C
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9438E2

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

Preview Lab → · Contrast checker → · Palette generator →

#9438E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva