#B7A751#B7A751

#B7A751 is a light, moderate yellow. Relative luminance 0.383; OKLCH L 72.4% C 0.109 H 98.9°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#B7A751
RGBrgb(183, 167, 81)
HSLhsl(51, 41%, 52%)
HSVhsv(51, 56%, 72%)
CMYKcmyk(0%, 8.7%, 55.7%, 28.2%)
CIE-LABlab(68.24, -5.30, 45.91)
CIE-LCHlch(68.24, 46.21, 96.58°)
OKLaboklab(72.44% -0.0169 0.1074)
OKLCHoklch(72.44% 0.109 98.9)
XYZxyz(34.8336, 38.3002, 13.3408)
Luminance0.3830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A751 #5161B7
analogous
#B77451 #B7A751 #94B751
triadic
#B7A751 #51B7A7 #A751B7
tetradic
#B7A751 #51B774 #5161B7 #B75194
square
#B7A751 #51B774 #5161B7 #B75194
split-complementary
#B7A751 #5194B7 #7451B7
monochromatic
#645B29 #8F823B #B7A751 #C9BD7C #DBD3A8

Accessibility & contrast

On white

2.42
#B7A751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#B7A751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A751
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A751#FFFFFF#000000##000000
##B7A7511.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A349
Deuteranopia (green-blind)
#B9A955
Tritanopia (blue-blind)
#C49C94
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b7a751;
/* rgb */ color: rgb(183, 167, 81);
/* oklch */ color: oklch(72.4% 0.109 98.9);
Tailwind
colors: {
  custom: {
    50: '#cfc084',
    500: '#b7a751',
    950: '#000000',
  },
}
SCSS
$custom: #b7a751;
$custom-light: #cfc084;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a751",
  "rgb": {
    "r": 183,
    "g": 167,
    "b": 81
  },
  "hsl": {
    "h": 50.588,
    "s": 41.463,
    "l": 51.765
  },
  "oklch": {
    "l": 0.72441,
    "c": 0.1087,
    "h": 98.9
  },
  "luminance": 0.38299
}

Semantic roles & 50–950 ramp

primary
#B7A751
secondary
#9CA3C8
accent
#6AD157
background
#FDFBF8
surface
#FAF7EF
border
#D3D0CA
text
#14120B
muted
#83817C

Preview Lab

Preview with #B7A751

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

Preview Lab → · Contrast checker → · Palette generator →

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