#7238CD#7238CD

#7238CD is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.1% C 0.214 H 295.3°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7238CD
RGBrgb(114, 56, 205)
HSLhsl(263, 60%, 51%)
HSVhsv(263, 73%, 80%)
CMYKcmyk(44.4%, 72.7%, 0%, 19.6%)
CIE-LABlab(39.26, 56.03, -67.60)
CIE-LCHlch(39.26, 87.80, 309.66°)
OKLaboklab(50.15% 0.0915 -0.1936)
OKLCHoklch(50.15% 0.214 295.3)
XYZxyz(19.3701, 10.8130, 58.8123)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238CD #93CD38
analogous
#3848CD #7238CD #BC38CD
triadic
#7238CD #CD7238 #38CD72
tetradic
#7238CD #CD3848 #93CD38 #38CDBC
square
#7238CD #CD3848 #93CD38 #38CDBC
split-complementary
#7238CD #CDBC38 #48CD38
monochromatic
#3C1C6F #5728A0 #7238CD #9569D9 #B79AE6

Accessibility & contrast

On white

6.64
#7238CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7238CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238CD
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238CD#FFFFFF#000000##FFFFFF
##7238CD1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#595F7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7238cd;
/* rgb */ color: rgb(114, 56, 205);
/* oklch */ color: oklch(50.1% 0.214 295.3);
Tailwind
colors: {
  custom: {
    50: '#a274dd',
    500: '#7238cd',
    950: '#000000',
  },
}
SCSS
$custom: #7238cd;
$custom-light: #a274dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7238cd",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 263.356,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50145,
    "c": 0.21411,
    "h": 295.3
  },
  "luminance": 0.10814
}

Semantic roles & 50–950 ramp

primary
#7238CD
secondary
#B8D18F
accent
#E345A5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7238CD

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

Preview Lab → · Contrast checker → · Palette generator →

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