#B18D1F#B18D1F

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

Color values

HEX#B18D1F
RGBrgb(177, 141, 31)
HSLhsl(45, 70%, 41%)
HSVhsv(45, 82%, 69%)
CMYKcmyk(0%, 20.3%, 82.5%, 30.6%)
CIE-LABlab(60.34, 3.28, 58.47)
CIE-LCHlch(60.34, 58.56, 86.78°)
OKLaboklab(65.93% 0.0023 0.1258)
OKLCHoklch(65.93% 0.126 88.9)
XYZxyz(27.9054, 28.4977, 5.3269)
Luminance0.2850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B18D1F #1F43B1
analogous
#B1441F #B18D1F #8CB11F
triadic
#B18D1F #1FB18D #8D1FB1
tetradic
#B18D1F #1FB144 #1F43B1 #B11F8C
square
#B18D1F #1FB144 #1F43B1 #B11F8C
split-complementary
#B18D1F #1F8CB1 #441FB1
monochromatic
#493A0D #7D6416 #B18D1F #DBB132 #E4C566

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B18D1F#FFFFFF#000000##000000
##B18D1F1.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)
#9F8C00
Deuteranopia (green-blind)
#A79626
Tritanopia (blue-blind)
#C08079
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b18d1f;
/* rgb */ color: rgb(177, 141, 31);
/* oklch */ color: oklch(65.9% 0.126 88.9);
Tailwind
colors: {
  custom: {
    50: '#cdad66',
    500: '#b18d1f',
    950: '#000000',
  },
}
SCSS
$custom: #b18d1f;
$custom-light: #cdad66;
$custom-dark: #000000;
JSON
{
  "hex": "#b18d1f",
  "rgb": {
    "r": 177,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 45.205,
    "s": 70.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.65932,
    "c": 0.12583,
    "h": 88.9
  },
  "luminance": 0.28496
}

Semantic roles & 50–950 ramp

primary
#B18D1F
secondary
#627CCA
accent
#67ED3B
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #B18D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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