#B7A042#B7A042

#B7A042 is a light, moderate yellow. Relative luminance 0.356; OKLCH L 70.8% C 0.116 H 95.5°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#B7A042
RGBrgb(183, 160, 66)
HSLhsl(48, 47%, 49%)
HSVhsv(48, 64%, 72%)
CMYKcmyk(0%, 12.6%, 63.9%, 28.2%)
CIE-LABlab(66.22, -2.66, 50.67)
CIE-LCHlch(66.22, 50.74, 93.00°)
OKLaboklab(70.79% -0.0111 0.1157)
OKLCHoklch(70.79% 0.116 95.5)
XYZxyz(33.0841, 35.6039, 10.2828)
Luminance0.3560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A042 #4259B7
analogous
#B76642 #B7A042 #94B742
triadic
#B7A042 #42B7A0 #A042B7
tetradic
#B7A042 #42B766 #4259B7 #B74294
square
#B7A042 #42B766 #4259B7 #B74294
split-complementary
#B7A042 #4294B7 #6642B7
monochromatic
#5D5122 #8A7932 #B7A042 #CAB86C #DACD99

Accessibility & contrast

On white

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

On black

8.12
#B7A042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A042
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A042#FFFFFF#000000##000000
##B7A0421.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9D37
Deuteranopia (green-blind)
#B5A447
Tritanopia (blue-blind)
#C5948C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b7a042;
/* rgb */ color: rgb(183, 160, 66);
/* oklch */ color: oklch(70.8% 0.116 95.5);
Tailwind
colors: {
  custom: {
    50: '#d0bb7a',
    500: '#b7a042',
    950: '#000000',
  },
}
SCSS
$custom: #b7a042;
$custom-light: #d0bb7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a042",
  "rgb": {
    "r": 183,
    "g": 160,
    "b": 66
  },
  "hsl": {
    "h": 48.205,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.7079,
    "c": 0.11618,
    "h": 95.5
  },
  "luminance": 0.35602
}

Semantic roles & 50–950 ramp

primary
#B7A042
secondary
#8F9AC6
accent
#6BD751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B

Preview Lab

Preview with #B7A042

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

Preview Lab → · Contrast checker → · Palette generator →

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