#B5A62C#B5A62C

#B5A62C is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.7% C 0.136 H 102.0°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#B5A62C
RGBrgb(181, 166, 44)
HSLhsl(53, 61%, 44%)
HSVhsv(53, 76%, 71%)
CMYKcmyk(0%, 8.3%, 75.7%, 29%)
CIE-LABlab(67.49, -7.91, 60.77)
CIE-LCHlch(67.49, 61.28, 97.41°)
OKLaboklab(71.7% -0.0284 0.1332)
OKLCHoklch(71.7% 0.136 102)
XYZxyz(33.1484, 37.2795, 7.8320)
Luminance0.3728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A62C #2C3BB5
analogous
#B5622C #B5A62C #80B52C
triadic
#B5A62C #2CB5A6 #A62CB5
tetradic
#B5A62C #2CB562 #2C3BB5 #B52C80
square
#B5A62C #2CB562 #2C3BB5 #B52C80
split-complementary
#B5A62C #2C80B5 #622CB5
monochromatic
#534C14 #847920 #B5A62C #D3C44B #DFD47C

Accessibility & contrast

On white

2.48
#B5A62C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#B5A62C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A62C
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A62C#FFFFFF#000000##000000
##B5A62C1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A113
Deuteranopia (green-blind)
#BAA735
Tritanopia (blue-blind)
#C39A8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b5a62c;
/* rgb */ color: rgb(181, 166, 44);
/* oklch */ color: oklch(71.7% 0.136 102.0);
Tailwind
colors: {
  custom: {
    50: '#cfc06f',
    500: '#b5a62c',
    950: '#000000',
  },
}
SCSS
$custom: #b5a62c;
$custom-light: #cfc06f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a62c",
  "rgb": {
    "r": 181,
    "g": 166,
    "b": 44
  },
  "hsl": {
    "h": 53.431,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71702,
    "c": 0.13623,
    "h": 102
  },
  "luminance": 0.37278
}

Semantic roles & 50–950 ramp

primary
#B5A62C
secondary
#757EC8
accent
#55E444
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A62C

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

Preview Lab → · Contrast checker → · Palette generator →

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