#B5A751#B5A751

#B5A751 is a light, moderate yellow. Relative luminance 0.381; OKLCH L 72.3% C 0.109 H 100.2°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#B5A751
RGBrgb(181, 167, 81)
HSLhsl(52, 40%, 51%)
HSVhsv(52, 55%, 71%)
CMYKcmyk(0%, 7.7%, 55.2%, 29%)
CIE-LABlab(68.06, -6.15, 45.65)
CIE-LCHlch(68.06, 46.07, 97.67°)
OKLaboklab(72.26% -0.0192 0.1069)
OKLCHoklch(72.26% 0.109 100.2)
XYZxyz(34.3611, 38.0566, 13.3187)
Luminance0.3805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A751 #515FB5
analogous
#B57551 #B5A751 #91B551
triadic
#B5A751 #51B5A7 #A751B5
tetradic
#B5A751 #51B575 #515FB5 #B55191
square
#B5A751 #51B575 #515FB5 #B55191
split-complementary
#B5A751 #5191B5 #7551B5
monochromatic
#625A2A #8D823C #B5A751 #C7BD7C #DAD2A7

Accessibility & contrast

On white

2.44
#B5A751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#B5A751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A751
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A751#FFFFFF#000000##000000
##B5A7511.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5a751;
/* rgb */ color: rgb(181, 167, 81);
/* oklch */ color: oklch(72.3% 0.109 100.2);
Tailwind
colors: {
  custom: {
    50: '#cdc084',
    500: '#b5a751',
    950: '#000000',
  },
}
SCSS
$custom: #b5a751;
$custom-light: #cdc084;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a751",
  "rgb": {
    "r": 181,
    "g": 167,
    "b": 81
  },
  "hsl": {
    "h": 51.6,
    "s": 40.323,
    "l": 51.373
  },
  "oklch": {
    "l": 0.72257,
    "c": 0.10858,
    "h": 100.2
  },
  "luminance": 0.38055
}

Semantic roles & 50–950 ramp

primary
#B5A751
secondary
#9BA1C7
accent
#68D058
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#14120B
muted
#82817C

Preview Lab

Preview with #B5A751

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

Preview Lab → · Contrast checker → · Palette generator →

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