#B7A538#B7A538

#B7A538 is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.8% C 0.128 H 99.7°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#B7A538
RGBrgb(183, 165, 56)
HSLhsl(51, 53%, 47%)
HSVhsv(51, 69%, 72%)
CMYKcmyk(0%, 9.8%, 69.4%, 28.2%)
CIE-LABlab(67.48, -5.92, 56.29)
CIE-LCHlch(67.48, 56.60, 96.00°)
OKLaboklab(71.76% -0.0216 0.1259)
OKLCHoklch(71.76% 0.128 99.7)
XYZxyz(33.6989, 37.2646, 9.1584)
Luminance0.3726 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A538 #384AB7
analogous
#B76638 #B7A538 #8AB738
triadic
#B7A538 #38B7A5 #A538B7
tetradic
#B7A538 #38B766 #384AB7 #B7388A
square
#B7A538 #38B766 #384AB7 #B7388A
split-complementary
#B7A538 #388AB7 #6638B7
monochromatic
#59501B #887B2A #B7A538 #CEBE5E #DCD18D

Accessibility & contrast

On white

2.48
#B7A538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#B7A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A538
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A538#FFFFFF#000000##000000
##B7A5381.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A128
Deuteranopia (green-blind)
#BAA73E
Tritanopia (blue-blind)
#C5998F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b7a538;
/* rgb */ color: rgb(183, 165, 56);
/* oklch */ color: oklch(71.8% 0.128 99.7);
Tailwind
colors: {
  custom: {
    50: '#d0bf75',
    500: '#b7a538',
    950: '#000000',
  },
}
SCSS
$custom: #b7a538;
$custom-light: #d0bf75;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a538",
  "rgb": {
    "r": 183,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 51.496,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.71761,
    "c": 0.12776,
    "h": 99.7
  },
  "luminance": 0.37263
}

Semantic roles & 50–950 ramp

primary
#B7A538
secondary
#848EC7
accent
#60DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B7A538

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

Preview Lab → · Contrast checker → · Palette generator →

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