#B5A12F#B5A12F

#B5A12F is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.130 H 98.9°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#B5A12F
RGBrgb(181, 161, 47)
HSLhsl(51, 59%, 45%)
HSVhsv(51, 74%, 71%)
CMYKcmyk(0%, 11%, 74%, 29%)
CIE-LABlab(66.15, -5.13, 58.43)
CIE-LCHlch(66.15, 58.65, 95.02°)
OKLaboklab(70.65% -0.0202 0.1289)
OKLCHoklch(70.65% 0.13 98.9)
XYZxyz(32.3156, 35.5203, 7.8427)
Luminance0.3552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A12F #2F43B5
analogous
#B55E2F #B5A12F #86B52F
triadic
#B5A12F #2FB5A1 #A12FB5
tetradic
#B5A12F #2FB55E #2F43B5 #B52F86
square
#B5A12F #2FB55E #2F43B5 #B52F86
split-complementary
#B5A12F #2F86B5 #5E2FB5
monochromatic
#544B16 #847622 #B5A12F #D1BE50 #DED080

Accessibility & contrast

On white

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

On black

8.10
#B5A12F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A12F
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A12F#FFFFFF#000000##000000
##B5A12F1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1B
Deuteranopia (green-blind)
#B6A436
Tritanopia (blue-blind)
#C3958B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a12f;
/* rgb */ color: rgb(181, 161, 47);
/* oklch */ color: oklch(70.6% 0.130 98.9);
Tailwind
colors: {
  custom: {
    50: '#cfbc70',
    500: '#b5a12f',
    950: '#000000',
  },
}
SCSS
$custom: #b5a12f;
$custom-light: #cfbc70;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a12f",
  "rgb": {
    "r": 181,
    "g": 161,
    "b": 47
  },
  "hsl": {
    "h": 51.045,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.70648,
    "c": 0.13043,
    "h": 98.9
  },
  "luminance": 0.35519
}

Semantic roles & 50–950 ramp

primary
#B5A12F
secondary
#7984C7
accent
#5DE246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B5A12F

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

Preview Lab → · Contrast checker → · Palette generator →

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