#B4A62F#B4A62F

#B4A62F is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.6% C 0.135 H 102.4°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#B4A62F
RGBrgb(180, 166, 47)
HSLhsl(54, 59%, 45%)
HSVhsv(54, 74%, 71%)
CMYKcmyk(0%, 7.8%, 73.9%, 29.4%)
CIE-LABlab(67.41, -8.22, 59.60)
CIE-LCHlch(67.41, 60.17, 97.85°)
OKLaboklab(71.63% -0.0289 0.1314)
OKLCHoklch(71.63% 0.135 102.4)
XYZxyz(32.9732, 37.1824, 8.1289)
Luminance0.3718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A62F #2F3DB4
analogous
#B4642F #B4A62F #80B42F
triadic
#B4A62F #2FB4A6 #A62FB4
tetradic
#B4A62F #2FB464 #2F3DB4 #B42F80
square
#B4A62F #2FB464 #2F3DB4 #B42F80
split-complementary
#B4A62F #2F80B4 #642FB4
monochromatic
#534C16 #837922 #B4A62F #D1C34F #DED480

Accessibility & contrast

On white

2.49
#B4A62F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#B4A62F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A62F
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A62F#FFFFFF#000000##000000
##B4A62F1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A119
Deuteranopia (green-blind)
#BAA737
Tritanopia (blue-blind)
#C29A8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b4a62f;
/* rgb */ color: rgb(180, 166, 47);
/* oklch */ color: oklch(71.6% 0.135 102.4);
Tailwind
colors: {
  custom: {
    50: '#cec070',
    500: '#b4a62f',
    950: '#000000',
  },
}
SCSS
$custom: #b4a62f;
$custom-light: #cec070;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a62f",
  "rgb": {
    "r": 180,
    "g": 166,
    "b": 47
  },
  "hsl": {
    "h": 53.684,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71628,
    "c": 0.13452,
    "h": 102.4
  },
  "luminance": 0.37181
}

Semantic roles & 50–950 ramp

primary
#B4A62F
secondary
#7880C7
accent
#56E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A62F

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

Preview Lab → · Contrast checker → · Palette generator →

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