#7238C2#7238C2

#7238C2 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.202 H 297.6°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7238C2
RGBrgb(114, 56, 194)
HSLhsl(265, 55%, 49%)
HSVhsv(265, 71%, 76%)
CMYKcmyk(41.2%, 71.1%, 0%, 23.9%)
CIE-LABlab(38.38, 53.22, -62.64)
CIE-LCHlch(38.38, 82.20, 310.35°)
OKLaboklab(49.24% 0.0938 -0.179)
OKLCHoklch(49.24% 0.202 297.6)
XYZxyz(18.0887, 10.3005, 52.0636)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238C2 #88C238
analogous
#3843C2 #7238C2 #B738C2
triadic
#7238C2 #C27238 #38C272
tetradic
#7238C2 #C23843 #88C238 #38C2B7
square
#7238C2 #C23843 #88C238 #38C2B7
split-complementary
#7238C2 #C2B738 #43C238
monochromatic
#3A1D63 #562A93 #7238C2 #9365D2 #B494E0

Accessibility & contrast

On white

6.86
#7238C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7238C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238C2
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238C2#FFFFFF#000000##FFFFFF
##7238C21.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#5E5A79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7238c2;
/* rgb */ color: rgb(114, 56, 194);
/* oklch */ color: oklch(49.2% 0.202 297.6);
Tailwind
colors: {
  custom: {
    50: '#a173d5',
    500: '#7238c2',
    950: '#000000',
  },
}
SCSS
$custom: #7238c2;
$custom-light: #a173d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7238c2",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 265.217,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49241,
    "c": 0.20208,
    "h": 297.6
  },
  "luminance": 0.10301
}

Semantic roles & 50–950 ramp

primary
#7238C2
secondary
#B0CB8A
accent
#DF49A0
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7238C2

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

Preview Lab → · Contrast checker → · Palette generator →

#7238C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva