#7238B4#7238B4

#7238B4 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.1% C 0.187 H 301.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7238B4
RGBrgb(114, 56, 180)
HSLhsl(268, 53%, 46%)
HSVhsv(268, 69%, 71%)
CMYKcmyk(36.7%, 68.9%, 0%, 29.4%)
CIE-LABlab(37.30, 49.69, -56.16)
CIE-LCHlch(37.30, 74.98, 311.50°)
OKLaboklab(48.14% 0.0961 -0.1599)
OKLCHoklch(48.14% 0.187 301)
XYZxyz(16.5898, 9.7009, 44.1696)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238B4 #7AB438
analogous
#383CB4 #7238B4 #B038B4
triadic
#7238B4 #B47238 #38B472
tetradic
#7238B4 #B4383C #7AB438 #38B4B0
square
#7238B4 #B4383C #7AB438 #38B4B0
split-complementary
#7238B4 #B4B038 #3CB438
monochromatic
#371B57 #542985 #7238B4 #915DCD #B18BDB

Accessibility & contrast

On white

7.14
#7238B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7238B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7238B4
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238B4#FFFFFF#000000##FFFFFF
##7238B41.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#645572
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7238b4;
/* rgb */ color: rgb(114, 56, 180);
/* oklch */ color: oklch(48.1% 0.187 301.0);
Tailwind
colors: {
  custom: {
    50: '#a073cb',
    500: '#7238b4',
    950: '#000000',
  },
}
SCSS
$custom: #7238b4;
$custom-light: #a073cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7238b4",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 268.065,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48138,
    "c": 0.18661,
    "h": 301
  },
  "luminance": 0.09701
}

Semantic roles & 50–950 ramp

primary
#7238B4
secondary
#A6C582
accent
#DC4C99
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7238B4

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

Preview Lab → · Contrast checker → · Palette generator →

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