#B4A338#B4A338

#B4A338 is a light, vivid yellow. Relative luminance 0.362; OKLCH L 71.0% C 0.126 H 100.1°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#B4A338
RGBrgb(180, 163, 56)
HSLhsl(52, 53%, 46%)
HSVhsv(52, 69%, 71%)
CMYKcmyk(0%, 9.4%, 68.9%, 29.4%)
CIE-LABlab(66.66, -6.18, 55.38)
CIE-LCHlch(66.66, 55.72, 96.36°)
OKLaboklab(71.05% -0.0222 0.1241)
OKLCHoklch(71.05% 0.126 100.1)
XYZxyz(32.6348, 36.1847, 9.0060)
Luminance0.3618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A338 #3849B4
analogous
#B46538 #B4A338 #87B438
triadic
#B4A338 #38B4A3 #A338B4
tetradic
#B4A338 #38B465 #3849B4 #B43887
square
#B4A338 #38B465 #3849B4 #B43887
split-complementary
#B4A338 #3887B4 #6538B4
monochromatic
#574E1B #857929 #B4A338 #CDBD5D #DBD08B

Accessibility & contrast

On white

2.55
#B4A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#B4A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A338
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A338#FFFFFF#000000##000000
##B4A3381.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E29
Deuteranopia (green-blind)
#B7A53E
Tritanopia (blue-blind)
#C2978D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b4a338;
/* rgb */ color: rgb(180, 163, 56);
/* oklch */ color: oklch(71.0% 0.126 100.1);
Tailwind
colors: {
  custom: {
    50: '#cebd75',
    500: '#b4a338',
    950: '#000000',
  },
}
SCSS
$custom: #b4a338;
$custom-light: #cebd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a338",
  "rgb": {
    "r": 180,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 51.774,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.7105,
    "c": 0.12605,
    "h": 100.1
  },
  "luminance": 0.36183
}

Semantic roles & 50–950 ramp

primary
#B4A338
secondary
#828CC5
accent
#60DC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4A338

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

Preview Lab → · Contrast checker → · Palette generator →

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