#B1B042#B1B042

#B1B042 is a light, vivid yellow. Relative luminance 0.408; OKLCH L 73.7% C 0.131 H 108.7°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#B1B042
RGBrgb(177, 176, 66)
HSLhsl(59, 46%, 48%)
HSVhsv(59, 63%, 69%)
CMYKcmyk(0%, 0.6%, 62.7%, 30.6%)
CIE-LABlab(70.03, -13.67, 54.61)
CIE-LCHlch(70.03, 56.30, 104.05°)
OKLaboklab(73.69% -0.0421 0.1242)
OKLCHoklch(73.69% 0.131 108.7)
XYZxyz(34.6413, 40.7921, 11.2021)
Luminance0.4079 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1B042 #4243B1
analogous
#B17842 #B1B042 #7BB142
triadic
#B1B042 #42B1B0 #B042B1
tetradic
#B1B042 #42B178 #4243B1 #B1427B
square
#B1B042 #42B178 #4243B1 #B1427B
split-complementary
#B1B042 #427BB1 #7842B1
monochromatic
#585721 #848431 #B1B042 #C7C669 #D8D796

Accessibility & contrast

On white

2.29
#B1B042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.16
#B1B042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1B042
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1B042#FFFFFF#000000##000000
##B1B0421.002.299.169.16
#FFFFFF2.291.0021.0021.00
#0000009.1621.001.001.00
##0000009.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA934
Deuteranopia (green-blind)
#BFAD49
Tritanopia (blue-blind)
#BDA599
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b1b042;
/* rgb */ color: rgb(177, 176, 66);
/* oklch */ color: oklch(73.7% 0.131 108.7);
Tailwind
colors: {
  custom: {
    50: '#cbc77c',
    500: '#b1b042',
    950: '#000000',
  },
}
SCSS
$custom: #b1b042;
$custom-light: #cbc77c;
$custom-dark: #000000;
JSON
{
  "hex": "#b1b042",
  "rgb": {
    "r": 177,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 59.459,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.73693,
    "c": 0.1311,
    "h": 108.7
  },
  "luminance": 0.40791
}

Semantic roles & 50–950 ramp

primary
#B1B042
secondary
#8B8CC3
accent
#54D552
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B1B042

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

Preview Lab → · Contrast checker → · Palette generator →

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