#7238CA#7238CA

#7238CA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.9% C 0.211 H 295.9°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7238CA
RGBrgb(114, 56, 202)
HSLhsl(264, 58%, 51%)
HSVhsv(264, 72%, 79%)
CMYKcmyk(43.6%, 72.3%, 0%, 20.8%)
CIE-LABlab(39.02, 55.26, -66.26)
CIE-LCHlch(39.02, 86.28, 309.83°)
OKLaboklab(49.9% 0.0922 -0.1896)
OKLCHoklch(49.9% 0.211 295.9)
XYZxyz(19.0114, 10.6696, 56.9234)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238CA #90CA38
analogous
#3847CA #7238CA #BB38CA
triadic
#7238CA #CA7238 #38CA72
tetradic
#7238CA #CA3847 #90CA38 #38CABB
square
#7238CA #CA3847 #90CA38 #38CABB
split-complementary
#7238CA #CABB38 #47CA38
monochromatic
#3C1D6B #57299B #7238CA #9468D7 #B699E4

Accessibility & contrast

On white

6.70
#7238CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7238CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238CA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238CA#FFFFFF#000000##FFFFFF
##7238CA1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#5A5E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7238ca;
/* rgb */ color: rgb(114, 56, 202);
/* oklch */ color: oklch(49.9% 0.211 295.9);
Tailwind
colors: {
  custom: {
    50: '#a274db',
    500: '#7238ca',
    950: '#000000',
  },
}
SCSS
$custom: #7238ca;
$custom-light: #a274db;
$custom-dark: #000000;
JSON
{
  "hex": "#7238ca",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 263.836,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.49896,
    "c": 0.21084,
    "h": 295.9
  },
  "luminance": 0.1067
}

Semantic roles & 50–950 ramp

primary
#7238CA
secondary
#B6CF8E
accent
#E147A4
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7238CA

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

Preview Lab → · Contrast checker → · Palette generator →

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