#B5B538#B5B538

#B5B538 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.1% C 0.143 H 109.4°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#B5B538
RGBrgb(181, 181, 56)
HSLhsl(60, 53%, 46%)
HSVhsv(60, 69%, 71%)
CMYKcmyk(0%, 0%, 69.1%, 29%)
CIE-LABlab(71.66, -15.11, 60.43)
CIE-LCHlch(71.66, 62.29, 104.03°)
OKLaboklab(75.05% -0.0474 0.1347)
OKLCHoklch(75.05% 0.143 109.4)
XYZxyz(36.2950, 43.1581, 10.1591)
Luminance0.4316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B538 #3838B5
analogous
#B57738 #B5B538 #77B538
triadic
#B5B538 #38B5B5 #B538B5
tetradic
#B5B538 #38B577 #3838B5 #B53877
square
#B5B538 #38B577 #3838B5 #B53877
split-complementary
#B5B538 #3877B5 #7738B5
monochromatic
#58581B #86862A #B5B538 #CDCD5D #DBDB8C

Accessibility & contrast

On white

2.18
#B5B538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#B5B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B538
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B538#FFFFFF#000000##000000
##B5B5381.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD24
Deuteranopia (green-blind)
#C5B141
Tritanopia (blue-blind)
#C2AA9C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b5b538;
/* rgb */ color: rgb(181, 181, 56);
/* oklch */ color: oklch(75.1% 0.143 109.4);
Tailwind
colors: {
  custom: {
    50: '#ceca76',
    500: '#b5b538',
    950: '#000000',
  },
}
SCSS
$custom: #b5b538;
$custom-light: #ceca76;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b538",
  "rgb": {
    "r": 181,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 60,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.75051,
    "c": 0.14283,
    "h": 109.4
  },
  "luminance": 0.43157
}

Semantic roles & 50–950 ramp

primary
#B5B538
secondary
#8383C6
accent
#4CDC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5B538

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

Preview Lab → · Contrast checker → · Palette generator →

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