#B7A72F#B7A72F

#B7A72F is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.1% C 0.135 H 101.4°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#B7A72F
RGBrgb(183, 167, 47)
HSLhsl(53, 59%, 45%)
HSVhsv(53, 74%, 72%)
CMYKcmyk(0%, 8.7%, 74.3%, 28.2%)
CIE-LABlab(67.96, -7.42, 60.21)
CIE-LCHlch(67.96, 60.67, 97.03°)
OKLaboklab(72.12% -0.0268 0.1326)
OKLCHoklch(72.12% 0.135 101.4)
XYZxyz(33.8618, 37.9115, 8.2228)
Luminance0.3791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A72F #2F3FB7
analogous
#B7632F #B7A72F #83B72F
triadic
#B7A72F #2FB7A7 #A72FB7
tetradic
#B7A72F #2FB763 #2F3FB7 #B72F83
square
#B7A72F #2FB763 #2F3FB7 #B72F83
split-complementary
#B7A72F #2F83B7 #632FB7
monochromatic
#564E16 #867B22 #B7A72F #D2C351 #DFD482

Accessibility & contrast

On white

2.45
#B7A72F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#B7A72F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A72F
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A72F#FFFFFF#000000##000000
##B7A72F1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A219
Deuteranopia (green-blind)
#BCA837
Tritanopia (blue-blind)
#C59B90
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b7a72f;
/* rgb */ color: rgb(183, 167, 47);
/* oklch */ color: oklch(72.1% 0.135 101.4);
Tailwind
colors: {
  custom: {
    50: '#d0c070',
    500: '#b7a72f',
    950: '#000000',
  },
}
SCSS
$custom: #b7a72f;
$custom-light: #d0c070;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a72f",
  "rgb": {
    "r": 183,
    "g": 167,
    "b": 47
  },
  "hsl": {
    "h": 52.941,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72123,
    "c": 0.13525,
    "h": 101.4
  },
  "luminance": 0.3791
}

Semantic roles & 50–950 ramp

primary
#B7A72F
secondary
#7A83C8
accent
#58E245
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7A72F

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

Preview Lab → · Contrast checker → · Palette generator →

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