#B5A12B#B5A12B

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

Color values

HEX#B5A12B
RGBrgb(181, 161, 43)
HSLhsl(51, 62%, 44%)
HSVhsv(51, 76%, 71%)
CMYKcmyk(0%, 11%, 76.2%, 29%)
CIE-LABlab(66.13, -5.30, 59.85)
CIE-LCHlch(66.13, 60.08, 95.06°)
OKLaboklab(70.62% -0.0211 0.1311)
OKLCHoklch(70.62% 0.133 99.2)
XYZxyz(32.2386, 35.4895, 7.4371)
Luminance0.3549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A12B #2B3FB5
analogous
#B55C2B #B5A12B #84B52B
triadic
#B5A12B #2BB5A1 #A12BB5
tetradic
#B5A12B #2BB55C #2B3FB5 #B52B84
square
#B5A12B #2BB55C #2B3FB5 #B52B84
split-complementary
#B5A12B #2B84B5 #5C2BB5
monochromatic
#524914 #84751F #B5A12B #D4C049 #E0D17B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A12B#FFFFFF#000000##000000
##B5A12B1.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)
#B19D13
Deuteranopia (green-blind)
#B7A433
Tritanopia (blue-blind)
#C3958A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a12b;
/* rgb */ color: rgb(181, 161, 43);
/* oklch */ color: oklch(70.6% 0.133 99.2);
Tailwind
colors: {
  custom: {
    50: '#cfbc6e',
    500: '#b5a12b',
    950: '#000000',
  },
}
SCSS
$custom: #b5a12b;
$custom-light: #cfbc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a12b",
  "rgb": {
    "r": 181,
    "g": 161,
    "b": 43
  },
  "hsl": {
    "h": 51.304,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70622,
    "c": 0.13278,
    "h": 99.2
  },
  "luminance": 0.35488
}

Semantic roles & 50–950 ramp

primary
#B5A12B
secondary
#7480C8
accent
#5BE543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B

Preview Lab

Preview with #B5A12B

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

Preview Lab → · Contrast checker → · Palette generator →

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