#B5B230#B5B230

#B5B230 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.3% C 0.145 H 108.1°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#B5B230
RGBrgb(181, 178, 48)
HSLhsl(59, 58%, 45%)
HSVhsv(59, 73%, 71%)
CMYKcmyk(0%, 1.7%, 73.5%, 29%)
CIE-LABlab(70.79, -13.96, 62.48)
CIE-LCHlch(70.79, 64.03, 102.60°)
OKLaboklab(74.34% -0.045 0.1376)
OKLCHoklch(74.34% 0.145 108.1)
XYZxyz(35.5113, 41.8791, 9.0086)
Luminance0.4188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B230 #3033B5
analogous
#B57030 #B5B230 #75B530
triadic
#B5B230 #30B5B2 #B230B5
tetradic
#B5B230 #30B570 #3033B5 #B53075
square
#B5B230 #30B570 #3033B5 #B53075
split-complementary
#B5B230 #3075B5 #7030B5
monochromatic
#545316 #858223 #B5B230 #D1CE51 #DEDC82

Accessibility & contrast

On white

2.24
#B5B230 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#B5B230 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B230
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B230#FFFFFF#000000##000000
##B5B2301.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB16
Deuteranopia (green-blind)
#C3AF3A
Tritanopia (blue-blind)
#C2A699
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b230;
/* rgb */ color: rgb(181, 178, 48);
/* oklch */ color: oklch(74.3% 0.145 108.1);
Tailwind
colors: {
  custom: {
    50: '#cfc872',
    500: '#b5b230',
    950: '#000000',
  },
}
SCSS
$custom: #b5b230;
$custom-light: #cfc872;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b230",
  "rgb": {
    "r": 181,
    "g": 178,
    "b": 48
  },
  "hsl": {
    "h": 58.647,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74338,
    "c": 0.14482,
    "h": 108.1
  },
  "luminance": 0.41878
}

Semantic roles & 50–950 ramp

primary
#B5B230
secondary
#7A7CC7
accent
#4AE146
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B230

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

Preview Lab → · Contrast checker → · Palette generator →

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