#947F1B#947F1B

#947F1B is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.9% C 0.115 H 96.3°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#947F1B
RGBrgb(148, 127, 27)
HSLhsl(50, 69%, 34%)
HSVhsv(50, 82%, 58%)
CMYKcmyk(0%, 14.2%, 81.8%, 42%)
CIE-LABlab(53.55, -2.39, 52.64)
CIE-LCHlch(53.55, 52.70, 92.60°)
OKLaboklab(59.88% -0.0127 0.1139)
OKLCHoklch(59.88% 0.115 96.3)
XYZxyz(20.0010, 21.5549, 4.1437)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#947F1B #1B3094
analogous
#94431B #947F1B #6D941B
triadic
#947F1B #1B947F #7F1B94
tetradic
#947F1B #1B9443 #1B3094 #941B6D
square
#947F1B #1B9443 #1B3094 #941B6D
split-complementary
#947F1B #1B6D94 #431B94
monochromatic
#2C2608 #605312 #947F1B #C8AB24 #DEC54B

Accessibility & contrast

On white

3.95
#947F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#947F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #947F1B
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##947F1B#FFFFFF#000000##000000
##947F1B1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C01
Deuteranopia (green-blind)
#928322
Tritanopia (blue-blind)
#A0746D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #947f1b;
/* rgb */ color: rgb(148, 127, 27);
/* oklch */ color: oklch(59.9% 0.115 96.3);
Tailwind
colors: {
  custom: {
    50: '#b7a361',
    500: '#947f1b',
    950: '#000000',
  },
}
SCSS
$custom: #947f1b;
$custom-light: #b7a361;
$custom-dark: #000000;
JSON
{
  "hex": "#947f1b",
  "rgb": {
    "r": 148,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 49.587,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59881,
    "c": 0.11463,
    "h": 96.3
  },
  "luminance": 0.21554
}

Semantic roles & 50–950 ramp

primary
#947F1B
secondary
#4B5FC0
accent
#5AEC3C
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #947F1B

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

Preview Lab → · Contrast checker → · Palette generator →

#947F1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva