#B7B02A#B7B02A

#B7B02A is a light, vivid yellow. Relative luminance 0.413; OKLCH L 74.0% C 0.146 H 106.3°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#B7B02A
RGBrgb(183, 176, 42)
HSLhsl(57, 63%, 44%)
HSVhsv(57, 77%, 72%)
CMYKcmyk(0%, 3.8%, 77%, 28.2%)
CIE-LABlab(70.38, -12.32, 64.16)
CIE-LCHlch(70.38, 65.33, 100.87°)
OKLaboklab(74.04% -0.0411 0.14)
OKLCHoklch(74.04% 0.146 106.3)
XYZxyz(35.4732, 41.2864, 8.2906)
Luminance0.4128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B02A #2A31B7
analogous
#B76A2A #B7B02A #78B72A
triadic
#B7B02A #2AB7B0 #B02AB7
tetradic
#B7B02A #2AB76A #2A31B7 #B72A78
square
#B7B02A #2AB76A #2A31B7 #B72A78
split-complementary
#B7B02A #2A78B7 #6A2AB7
monochromatic
#535013 #85801F #B7B02A #D5CE49 #E1DC7B

Accessibility & contrast

On white

2.27
#B7B02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#B7B02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B02A
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B02A#FFFFFF#000000##000000
##B7B02A1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A905
Deuteranopia (green-blind)
#C2AE35
Tritanopia (blue-blind)
#C5A497
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b7b02a;
/* rgb */ color: rgb(183, 176, 42);
/* oklch */ color: oklch(74.0% 0.146 106.3);
Tailwind
colors: {
  custom: {
    50: '#d0c76f',
    500: '#b7b02a',
    950: '#000000',
  },
}
SCSS
$custom: #b7b02a;
$custom-light: #d0c76f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b02a",
  "rgb": {
    "r": 183,
    "g": 176,
    "b": 42
  },
  "hsl": {
    "h": 57.021,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.7404,
    "c": 0.1459,
    "h": 106.3
  },
  "luminance": 0.41285
}

Semantic roles & 50–950 ramp

primary
#B7B02A
secondary
#7478C9
accent
#4AE642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7B02A

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

Preview Lab → · Contrast checker → · Palette generator →

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