#947D17#947D17

#947D17 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.4% C 0.115 H 95.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#947D17
RGBrgb(148, 125, 23)
HSLhsl(49, 73%, 34%)
HSVhsv(49, 84%, 58%)
CMYKcmyk(0%, 15.5%, 84.5%, 42%)
CIE-LABlab(52.98, -1.41, 53.39)
CIE-LCHlch(52.98, 53.41, 91.51°)
OKLaboklab(59.42% -0.0102 0.1147)
OKLCHoklch(59.42% 0.115 95.1)
XYZxyz(19.7021, 21.0261, 3.8312)
Luminance0.2102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#947D17 #172E94
analogous
#943E17 #947D17 #6C9417
triadic
#947D17 #17947D #7D1794
tetradic
#947D17 #17943E #172E94 #94176C
square
#947D17 #17943E #172E94 #94176C
split-complementary
#947D17 #176C94 #3E1794
monochromatic
#2A2407 #5F500F #947D17 #C9AA1F #E2C544

Accessibility & contrast

On white

4.03
#947D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#947D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #947D17
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##947D17#FFFFFF#000000##000000
##947D171.004.035.205.20
#FFFFFF4.031.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#91811F
Tritanopia (blue-blind)
#A1726B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #947d17;
/* rgb */ color: rgb(148, 125, 23);
/* oklch */ color: oklch(59.4% 0.115 95.1);
Tailwind
colors: {
  custom: {
    50: '#b8a25f',
    500: '#947d17',
    950: '#000000',
  },
}
SCSS
$custom: #947d17;
$custom-light: #b8a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#947d17",
  "rgb": {
    "r": 148,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 48.96,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59422,
    "c": 0.11515,
    "h": 95.1
  },
  "luminance": 0.21025
}

Semantic roles & 50–950 ramp

primary
#947D17
secondary
#445BC3
accent
#5AF038
background
#FBF9F5
surface
#F7F2EA
border
#D0CCC6
text
#120F05
muted
#817E79

Preview Lab

Preview with #947D17

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

Preview Lab → · Contrast checker → · Palette generator →

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