#B5A12C#B5A12C

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

Color values

HEX#B5A12C
RGBrgb(181, 161, 44)
HSLhsl(51, 61%, 44%)
HSVhsv(51, 76%, 71%)
CMYKcmyk(0%, 11%, 75.7%, 29%)
CIE-LABlab(66.13, -5.26, 59.50)
CIE-LCHlch(66.13, 59.73, 95.05°)
OKLaboklab(70.63% -0.0209 0.1305)
OKLCHoklch(70.63% 0.132 99.1)
XYZxyz(32.2571, 35.4969, 7.5349)
Luminance0.3549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A12C #2C40B5
analogous
#B55D2C #B5A12C #85B52C
triadic
#B5A12C #2CB5A1 #A12CB5
tetradic
#B5A12C #2CB55D #2C40B5 #B52C85
square
#B5A12C #2CB55D #2C40B5 #B52C85
split-complementary
#B5A12C #2C85B5 #5D2CB5
monochromatic
#534914 #847520 #B5A12C #D3BF4B #DFD17C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A12C#FFFFFF#000000##000000
##B5A12C1.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)
#B19D15
Deuteranopia (green-blind)
#B7A434
Tritanopia (blue-blind)
#C3958B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a12c;
/* rgb */ color: rgb(181, 161, 44);
/* oklch */ color: oklch(70.6% 0.132 99.1);
Tailwind
colors: {
  custom: {
    50: '#cfbc6e',
    500: '#b5a12c',
    950: '#000000',
  },
}
SCSS
$custom: #b5a12c;
$custom-light: #cfbc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a12c",
  "rgb": {
    "r": 181,
    "g": 161,
    "b": 44
  },
  "hsl": {
    "h": 51.241,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70628,
    "c": 0.1322,
    "h": 99.1
  },
  "luminance": 0.35495
}

Semantic roles & 50–950 ramp

primary
#B5A12C
secondary
#7581C8
accent
#5BE444
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B

Preview Lab

Preview with #B5A12C

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

Preview Lab → · Contrast checker → · Palette generator →

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