#947B1F#947B1F

#947B1F is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 59.0% C 0.110 H 92.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#947B1F
RGBrgb(148, 123, 31)
HSLhsl(47, 65%, 35%)
HSVhsv(47, 79%, 58%)
CMYKcmyk(0%, 16.9%, 79.1%, 42%)
CIE-LABlab(52.47, 0.00, 50.28)
CIE-LCHlch(52.47, 50.28, 90.00°)
OKLaboklab(59.03% -0.0055 0.1097)
OKLCHoklch(59.03% 0.11 92.9)
XYZxyz(19.5441, 20.5619, 4.2355)
Luminance0.2056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#947B1F #1F3894
analogous
#94401F #947B1F #73941F
triadic
#947B1F #1F947B #7B1F94
tetradic
#947B1F #1F9440 #1F3894 #941F73
square
#947B1F #1F9440 #1F3894 #941F73
split-complementary
#947B1F #1F7394 #401F94
monochromatic
#2F270A #615114 #947B1F #C7A52A #DBBE53

Accessibility & contrast

On white

4.11
#947B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#947B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #947B1F
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##947B1F#FFFFFF#000000##000000
##947B1F1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790C
Deuteranopia (green-blind)
#8F8025
Tritanopia (blue-blind)
#A17069
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #947b1f;
/* rgb */ color: rgb(148, 123, 31);
/* oklch */ color: oklch(59.0% 0.110 92.9);
Tailwind
colors: {
  custom: {
    50: '#b7a063',
    500: '#947b1f',
    950: '#000000',
  },
}
SCSS
$custom: #947b1f;
$custom-light: #b7a063;
$custom-dark: #000000;
JSON
{
  "hex": "#947b1f",
  "rgb": {
    "r": 148,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 47.179,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.5903,
    "c": 0.10985,
    "h": 92.9
  },
  "luminance": 0.20561
}

Semantic roles & 50–950 ramp

primary
#947B1F
secondary
#5168BE
accent
#64E83F
background
#FBF9F6
surface
#F7F2EB
border
#D0CCC6
text
#120E06
muted
#817E7A

Preview Lab

Preview with #947B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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