#B4A138#B4A138

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

Color values

HEX#B4A138
RGBrgb(180, 161, 56)
HSLhsl(51, 53%, 46%)
HSVhsv(51, 69%, 71%)
CMYKcmyk(0%, 10.6%, 68.9%, 29.4%)
CIE-LABlab(66.12, -5.11, 54.83)
CIE-LCHlch(66.12, 55.07, 95.33°)
OKLaboklab(70.62% -0.0191 0.1229)
OKLCHoklch(70.62% 0.124 98.8)
XYZxyz(32.2825, 35.4801, 8.8885)
Luminance0.3548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A138 #384BB4
analogous
#B46338 #B4A138 #89B438
triadic
#B4A138 #38B4A1 #A138B4
tetradic
#B4A138 #38B463 #384BB4 #B43889
square
#B4A138 #38B463 #384BB4 #B43889
split-complementary
#B4A138 #3889B4 #6338B4
monochromatic
#574D1B #857729 #B4A138 #CDBB5D #DBCF8B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4A138#FFFFFF#000000##000000
##B4A1381.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)
#B09D2A
Deuteranopia (green-blind)
#B6A43E
Tritanopia (blue-blind)
#C2958C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b4a138;
/* rgb */ color: rgb(180, 161, 56);
/* oklch */ color: oklch(70.6% 0.124 98.8);
Tailwind
colors: {
  custom: {
    50: '#cebc75',
    500: '#b4a138',
    950: '#000000',
  },
}
SCSS
$custom: #b4a138;
$custom-light: #cebc75;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a138",
  "rgb": {
    "r": 180,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 50.806,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.70621,
    "c": 0.12441,
    "h": 98.8
  },
  "luminance": 0.35479
}

Semantic roles & 50–950 ramp

primary
#B4A138
secondary
#828DC5
accent
#62DC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4A138

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

Preview Lab → · Contrast checker → · Palette generator →

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