#B5A62E#B5A62E

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

Color values

HEX#B5A62E
RGBrgb(181, 166, 46)
HSLhsl(53, 59%, 45%)
HSVhsv(53, 75%, 71%)
CMYKcmyk(0%, 8.3%, 74.6%, 29%)
CIE-LABlab(67.50, -7.82, 60.07)
CIE-LCHlch(67.50, 60.58, 97.42°)
OKLaboklab(71.71% -0.0279 0.1322)
OKLCHoklch(71.71% 0.135 101.9)
XYZxyz(33.1869, 37.2949, 8.0348)
Luminance0.3729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A62E #2E3DB5
analogous
#B5622E #B5A62E #81B52E
triadic
#B5A62E #2EB5A6 #A62EB5
tetradic
#B5A62E #2EB562 #2E3DB5 #B52E81
square
#B5A62E #2EB562 #2E3DB5 #B52E81
split-complementary
#B5A62E #2E81B5 #622EB5
monochromatic
#534C15 #847922 #B5A62E #D2C34E #DED47F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A62E#FFFFFF#000000##000000
##B5A62E1.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)
#B6A117
Deuteranopia (green-blind)
#BAA736
Tritanopia (blue-blind)
#C39A8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b5a62e;
/* rgb */ color: rgb(181, 166, 46);
/* oklch */ color: oklch(71.7% 0.135 101.9);
Tailwind
colors: {
  custom: {
    50: '#cfc070',
    500: '#b5a62e',
    950: '#000000',
  },
}
SCSS
$custom: #b5a62e;
$custom-light: #cfc070;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a62e",
  "rgb": {
    "r": 181,
    "g": 166,
    "b": 46
  },
  "hsl": {
    "h": 53.333,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71714,
    "c": 0.13507,
    "h": 101.9
  },
  "luminance": 0.37293
}

Semantic roles & 50–950 ramp

primary
#B5A62E
secondary
#7880C7
accent
#57E345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A62E

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

Preview Lab → · Contrast checker → · Palette generator →

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