#B1B040#B1B040

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

Color values

HEX#B1B040
RGBrgb(177, 176, 64)
HSLhsl(59, 47%, 47%)
HSVhsv(59, 64%, 69%)
CMYKcmyk(0%, 0.6%, 63.8%, 30.6%)
CIE-LABlab(70.01, -13.79, 55.44)
CIE-LCHlch(70.01, 57.13, 103.97°)
OKLaboklab(73.67% -0.0427 0.1256)
OKLCHoklch(73.67% 0.133 108.8)
XYZxyz(34.5833, 40.7689, 10.8970)
Luminance0.4077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1B040 #4041B1
analogous
#B17840 #B1B040 #7AB140
triadic
#B1B040 #40B1B0 #B040B1
tetradic
#B1B040 #40B178 #4041B1 #B1407A
square
#B1B040 #40B178 #4041B1 #B1407A
split-complementary
#B1B040 #407AB1 #7840B1
monochromatic
#57571F #848330 #B1B040 #C8C766 #D8D793

Accessibility & contrast

On white

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

On black

9.15
#B1B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1B040
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1B040#FFFFFF#000000##000000
##B1B0401.002.299.159.15
#FFFFFF2.291.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b1b040;
/* rgb */ color: rgb(177, 176, 64);
/* oklch */ color: oklch(73.7% 0.133 108.8);
Tailwind
colors: {
  custom: {
    50: '#cbc77a',
    500: '#b1b040',
    950: '#000000',
  },
}
SCSS
$custom: #b1b040;
$custom-light: #cbc77a;
$custom-dark: #000000;
JSON
{
  "hex": "#b1b040",
  "rgb": {
    "r": 177,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 59.469,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.73674,
    "c": 0.13267,
    "h": 108.8
  },
  "luminance": 0.40768
}

Semantic roles & 50–950 ramp

primary
#B1B040
secondary
#898AC3
accent
#52D751
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B1B040

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

Preview Lab → · Contrast checker → · Palette generator →

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