#B262F2#B262F2

#B262F2 is a light, highly saturated violet. Relative luminance 0.246; OKLCH L 65.1% C 0.212 H 307.1°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#B262F2
RGBrgb(178, 98, 242)
HSLhsl(273, 85%, 67%)
HSVhsv(273, 60%, 95%)
CMYKcmyk(26.4%, 59.5%, 0%, 5.1%)
CIE-LABlab(56.70, 57.41, -60.04)
CIE-LCHlch(56.70, 83.07, 313.72°)
OKLaboklab(65.13% 0.1281 -0.1694)
OKLCHoklch(65.13% 0.212 307.1)
XYZxyz(38.7515, 24.6116, 86.6962)
Luminance0.2461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B262F2 #A2F262
analogous
#6A62F2 #B262F2 #F262EA
triadic
#B262F2 #F2B262 #62F2B2
tetradic
#B262F2 #F26A62 #A2F262 #62EAF2
square
#B262F2 #F26A62 #A2F262 #62EAF2
split-complementary
#B262F2 #EAF262 #62F26A
monochromatic
#7711C9 #9629ED #B262F2 #CE9BF7 #E9D3FB

Accessibility & contrast

On white

3.55
#B262F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#B262F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B262F2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B262F2#FFFFFF#000000##000000
##B262F21.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2085F7
Deuteranopia (green-blind)
#4989EF
Tritanopia (blue-blind)
#A87EA1
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #b262f2;
/* rgb */ color: rgb(178, 98, 242);
/* oklch */ color: oklch(65.1% 0.212 307.1);
Tailwind
colors: {
  custom: {
    50: '#cd92f7',
    500: '#b262f2',
    950: '#000000',
  },
}
SCSS
$custom: #b262f2;
$custom-light: #cd92f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b262f2",
  "rgb": {
    "r": 178,
    "g": 98,
    "b": 242
  },
  "hsl": {
    "h": 273.333,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.65129,
    "c": 0.21239,
    "h": 307.1
  },
  "luminance": 0.24611
}

Semantic roles & 50–950 ramp

primary
#B262F2
secondary
#D5EFC1
accent
#E10466
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D17
muted
#837E85

Preview Lab

Preview with #B262F2

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

Preview Lab → · Contrast checker → · Palette generator →

#B262F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva