#B7A438#B7A438

#B7A438 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.5% C 0.127 H 99.1°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#B7A438
RGBrgb(183, 164, 56)
HSLhsl(51, 53%, 47%)
HSVhsv(51, 69%, 72%)
CMYKcmyk(0%, 10.4%, 69.4%, 28.2%)
CIE-LABlab(67.21, -5.39, 56.02)
CIE-LCHlch(67.21, 56.28, 95.50°)
OKLaboklab(71.55% -0.0201 0.1254)
OKLCHoklch(71.55% 0.127 99.1)
XYZxyz(33.5192, 36.9053, 9.0985)
Luminance0.3690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A438 #384BB7
analogous
#B76538 #B7A438 #8AB738
triadic
#B7A438 #38B7A4 #A438B7
tetradic
#B7A438 #38B765 #384BB7 #B7388A
square
#B7A438 #38B765 #384BB7 #B7388A
split-complementary
#B7A438 #388AB7 #6538B7
monochromatic
#59501B #887A2A #B7A438 #CEBD5E #DCD08D

Accessibility & contrast

On white

2.51
#B7A438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#B7A438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A438
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A438#FFFFFF#000000##000000
##B7A4381.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A029
Deuteranopia (green-blind)
#B9A73E
Tritanopia (blue-blind)
#C5988E
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b7a438;
/* rgb */ color: rgb(183, 164, 56);
/* oklch */ color: oklch(71.5% 0.127 99.1);
Tailwind
colors: {
  custom: {
    50: '#d0be75',
    500: '#b7a438',
    950: '#000000',
  },
}
SCSS
$custom: #b7a438;
$custom-light: #d0be75;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a438",
  "rgb": {
    "r": 183,
    "g": 164,
    "b": 56
  },
  "hsl": {
    "h": 51.024,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.71547,
    "c": 0.12695,
    "h": 99.1
  },
  "luminance": 0.36904
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B7A438

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

Preview Lab → · Contrast checker → · Palette generator →

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