#B8B02F#B8B02F

#B8B02F is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.2% C 0.143 H 105.8°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#B8B02F
RGBrgb(184, 176, 47)
HSLhsl(56, 59%, 45%)
HSVhsv(56, 74%, 72%)
CMYKcmyk(0%, 4.3%, 74.5%, 27.8%)
CIE-LABlab(70.49, -11.68, 62.64)
CIE-LCHlch(70.49, 63.72, 100.56°)
OKLaboklab(74.16% -0.0389 0.1377)
OKLCHoklch(74.16% 0.143 105.8)
XYZxyz(35.8071, 41.4476, 8.8028)
Luminance0.4145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B02F #2F37B8
analogous
#B86B2F #B8B02F #7CB82F
triadic
#B8B02F #2FB8B0 #B02FB8
tetradic
#B8B02F #2FB86B #2F37B8 #B82F7C
square
#B8B02F #2FB86B #2F37B8 #B82F7C
split-complementary
#B8B02F #2F7CB8 #6B2FB8
monochromatic
#575316 #878123 #B8B02F #D3CB52 #DFDA82

Accessibility & contrast

On white

2.26
#B8B02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#B8B02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B02F
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B02F#FFFFFF#000000##000000
##B8B02F1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A914
Deuteranopia (green-blind)
#C3AF39
Tritanopia (blue-blind)
#C6A497
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b8b02f;
/* rgb */ color: rgb(184, 176, 47);
/* oklch */ color: oklch(74.2% 0.143 105.8);
Tailwind
colors: {
  custom: {
    50: '#d1c771',
    500: '#b8b02f',
    950: '#000000',
  },
}
SCSS
$custom: #b8b02f;
$custom-light: #d1c771;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b02f",
  "rgb": {
    "r": 184,
    "g": 176,
    "b": 47
  },
  "hsl": {
    "h": 56.496,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74159,
    "c": 0.14305,
    "h": 105.8
  },
  "luminance": 0.41446
}

Semantic roles & 50–950 ramp

primary
#B8B02F
secondary
#7B7FC8
accent
#4EE245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B02F

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

Preview Lab → · Contrast checker → · Palette generator →

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