#B8A02F#B8A02F

#B8A02F is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.7% C 0.130 H 96.7°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#B8A02F
RGBrgb(184, 160, 47)
HSLhsl(49, 59%, 45%)
HSVhsv(49, 74%, 72%)
CMYKcmyk(0%, 13%, 74.5%, 27.8%)
CIE-LABlab(66.17, -3.27, 58.54)
CIE-LCHlch(66.17, 58.63, 93.19°)
OKLaboklab(70.73% -0.0151 0.129)
OKLCHoklch(70.73% 0.13 96.7)
XYZxyz(32.8527, 35.5389, 7.8180)
Luminance0.3554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A02F #2F47B8
analogous
#B85B2F #B8A02F #8BB82F
triadic
#B8A02F #2FB8A0 #A02FB8
tetradic
#B8A02F #2FB85B #2F47B8 #B82F8B
square
#B8A02F #2FB85B #2F47B8 #B82F8B
split-complementary
#B8A02F #2F8BB8 #5B2FB8
monochromatic
#574B16 #877623 #B8A02F #D3BC52 #DFCF82

Accessibility & contrast

On white

2.59
#B8A02F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#B8A02F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A02F
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A02F#FFFFFF#000000##000000
##B8A02F1.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C1B
Deuteranopia (green-blind)
#B7A436
Tritanopia (blue-blind)
#C7938A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b8a02f;
/* rgb */ color: rgb(184, 160, 47);
/* oklch */ color: oklch(70.7% 0.130 96.7);
Tailwind
colors: {
  custom: {
    50: '#d1bb70',
    500: '#b8a02f',
    950: '#000000',
  },
}
SCSS
$custom: #b8a02f;
$custom-light: #d1bb70;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a02f",
  "rgb": {
    "r": 184,
    "g": 160,
    "b": 47
  },
  "hsl": {
    "h": 49.489,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.70726,
    "c": 0.12985,
    "h": 96.7
  },
  "luminance": 0.35537
}

Semantic roles & 50–950 ramp

primary
#B8A02F
secondary
#7B88C8
accent
#61E245
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #B8A02F

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

Preview Lab → · Contrast checker → · Palette generator →

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