#947F17#947F17

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

Color values

HEX#947F17
RGBrgb(148, 127, 23)
HSLhsl(50, 73%, 34%)
HSVhsv(50, 84%, 58%)
CMYKcmyk(0%, 14.2%, 84.5%, 42%)
CIE-LABlab(53.53, -2.52, 53.86)
CIE-LCHlch(53.53, 53.92, 92.68°)
OKLaboklab(59.86% -0.0134 0.1157)
OKLCHoklch(59.86% 0.116 96.6)
XYZxyz(19.9579, 21.5376, 3.9164)
Luminance0.2154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#947F17 #172C94
analogous
#944017 #947F17 #6A9417
triadic
#947F17 #17947F #7F1794
tetradic
#947F17 #179440 #172C94 #94176A
square
#947F17 #179440 #172C94 #94176A
split-complementary
#947F17 #176A94 #401794
monochromatic
#2A2407 #5F520F #947F17 #C9AC1F #E2C744

Accessibility & contrast

On white

3.96
#947F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##947F17#FFFFFF#000000##000000
##947F171.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#92831F
Tritanopia (blue-blind)
#A1746C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #947f17;
/* rgb */ color: rgb(148, 127, 23);
/* oklch */ color: oklch(59.9% 0.116 96.6);
Tailwind
colors: {
  custom: {
    50: '#b8a360',
    500: '#947f17',
    950: '#000000',
  },
}
SCSS
$custom: #947f17;
$custom-light: #b8a360;
$custom-dark: #000000;
JSON
{
  "hex": "#947f17",
  "rgb": {
    "r": 148,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 49.92,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59861,
    "c": 0.11649,
    "h": 96.6
  },
  "luminance": 0.21537
}

Semantic roles & 50–950 ramp

primary
#947F17
secondary
#4459C3
accent
#57F038
background
#FBFAF5
surface
#F7F3EA
border
#D0CDC6
text
#120F05
muted
#817F79

Preview Lab

Preview with #947F17

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

Preview Lab → · Contrast checker → · Palette generator →

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