#B4B338#B4B338

#B4B338 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.5% C 0.141 H 108.9°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#B4B338
RGBrgb(180, 179, 56)
HSLhsl(60, 53%, 46%)
HSVhsv(60, 69%, 71%)
CMYKcmyk(0%, 0.6%, 68.9%, 29.4%)
CIE-LABlab(71.03, -14.51, 59.77)
CIE-LCHlch(71.03, 61.51, 103.65°)
OKLaboklab(74.53% -0.0457 0.1334)
OKLCHoklch(74.53% 0.141 108.9)
XYZxyz(35.6575, 42.2301, 10.0135)
Luminance0.4223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B338 #3839B4
analogous
#B47538 #B4B338 #77B438
triadic
#B4B338 #38B4B3 #B338B4
tetradic
#B4B338 #38B475 #3839B4 #B43877
square
#B4B338 #38B475 #3839B4 #B43877
split-complementary
#B4B338 #3877B4 #7538B4
monochromatic
#57561B #858529 #B4B338 #CDCC5D #DBDA8B

Accessibility & contrast

On white

2.22
#B4B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#B4B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B338
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B338#FFFFFF#000000##000000
##B4B3381.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC25
Deuteranopia (green-blind)
#C3B041
Tritanopia (blue-blind)
#C1A89B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b4b338;
/* rgb */ color: rgb(180, 179, 56);
/* oklch */ color: oklch(74.5% 0.141 108.9);
Tailwind
colors: {
  custom: {
    50: '#cec976',
    500: '#b4b338',
    950: '#000000',
  },
}
SCSS
$custom: #b4b338;
$custom-light: #cec976;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b338",
  "rgb": {
    "r": 180,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 59.516,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.74526,
    "c": 0.14099,
    "h": 108.9
  },
  "luminance": 0.42229
}

Semantic roles & 50–950 ramp

primary
#B4B338
secondary
#8283C5
accent
#4DDC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4B338

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

Preview Lab → · Contrast checker → · Palette generator →

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