#B18D21#B18D21

#B18D21 is a light, vivid yellow. Relative luminance 0.285; OKLCH L 65.9% C 0.125 H 88.8°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#B18D21
RGBrgb(177, 141, 33)
HSLhsl(45, 69%, 41%)
HSVhsv(45, 81%, 69%)
CMYKcmyk(0%, 20.3%, 81.4%, 30.6%)
CIE-LABlab(60.35, 3.35, 57.83)
CIE-LCHlch(60.35, 57.93, 86.68°)
OKLaboklab(65.94% 0.0027 0.1249)
OKLCHoklch(65.94% 0.125 88.8)
XYZxyz(27.9326, 28.5086, 5.4700)
Luminance0.2851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18D21 #2145B1
analogous
#B14521 #B18D21 #8DB121
triadic
#B18D21 #21B18D #8D21B1
tetradic
#B18D21 #21B145 #2145B1 #B1218D
square
#B18D21 #21B145 #2145B1 #B1218D
split-complementary
#B18D21 #218DB1 #4521B1
monochromatic
#4A3B0E #7D6417 #B18D21 #D9B136 #E3C569

Accessibility & contrast

On white

3.13
#B18D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#B18D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B18D21
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B18D21#FFFFFF#000000##000000
##B18D211.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8C05
Deuteranopia (green-blind)
#A79628
Tritanopia (blue-blind)
#C08079
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b18d21;
/* rgb */ color: rgb(177, 141, 33);
/* oklch */ color: oklch(65.9% 0.125 88.8);
Tailwind
colors: {
  custom: {
    50: '#cdae66',
    500: '#b18d21',
    950: '#000000',
  },
}
SCSS
$custom: #b18d21;
$custom-light: #cdae66;
$custom-dark: #000000;
JSON
{
  "hex": "#b18d21",
  "rgb": {
    "r": 177,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 45,
    "s": 68.571,
    "l": 41.176
  },
  "oklch": {
    "l": 0.65943,
    "c": 0.1249,
    "h": 88.8
  },
  "luminance": 0.28507
}

Semantic roles & 50–950 ramp

primary
#B18D21
secondary
#657EC9
accent
#68EB3C
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #B18D21

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

Preview Lab → · Contrast checker → · Palette generator →

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