#B4A638#B4A638

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

Color values

HEX#B4A638
RGBrgb(180, 166, 56)
HSLhsl(53, 53%, 46%)
HSVhsv(53, 69%, 71%)
CMYKcmyk(0%, 7.8%, 68.9%, 29.4%)
CIE-LABlab(67.47, -7.76, 56.20)
CIE-LCHlch(67.47, 56.74, 97.86°)
OKLaboklab(71.69% -0.0267 0.1258)
OKLCHoklch(71.69% 0.129 102)
XYZxyz(33.1738, 37.2627, 9.1856)
Luminance0.3726 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A638 #3846B4
analogous
#B46838 #B4A638 #84B438
triadic
#B4A638 #38B4A6 #A638B4
tetradic
#B4A638 #38B468 #3846B4 #B43884
square
#B4A638 #38B468 #3846B4 #B43884
split-complementary
#B4A638 #3884B4 #6838B4
monochromatic
#57501B #857B29 #B4A638 #CDC05D #DBD28B

Accessibility & contrast

On white

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

On black

8.45
#B4A638 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A638
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A638#FFFFFF#000000##000000
##B4A6381.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A128
Deuteranopia (green-blind)
#B9A73F
Tritanopia (blue-blind)
#C29A90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b4a638;
/* rgb */ color: rgb(180, 166, 56);
/* oklch */ color: oklch(71.7% 0.129 102.0);
Tailwind
colors: {
  custom: {
    50: '#cec075',
    500: '#b4a638',
    950: '#000000',
  },
}
SCSS
$custom: #b4a638;
$custom-light: #cec075;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a638",
  "rgb": {
    "r": 180,
    "g": 166,
    "b": 56
  },
  "hsl": {
    "h": 53.226,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.71695,
    "c": 0.12863,
    "h": 102
  },
  "luminance": 0.37261
}

Semantic roles & 50–950 ramp

primary
#B4A638
secondary
#828AC5
accent
#5CDC4C
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4A638

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

Preview Lab → · Contrast checker → · Palette generator →

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