#947F1C#947F1C

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

Color values

HEX#947F1C
RGBrgb(148, 127, 28)
HSLhsl(50, 68%, 35%)
HSVhsv(50, 81%, 58%)
CMYKcmyk(0%, 14.2%, 81.1%, 42%)
CIE-LABlab(53.56, -2.35, 52.32)
CIE-LCHlch(53.56, 52.37, 92.58°)
OKLaboklab(59.89% -0.0125 0.1134)
OKLCHoklch(59.89% 0.114 96.3)
XYZxyz(20.0128, 21.5596, 4.2057)
Luminance0.2156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#947F1C #1C3194
analogous
#94431C #947F1C #6D941C
triadic
#947F1C #1C947F #7F1C94
tetradic
#947F1C #1C9443 #1C3194 #941C6D
square
#947F1C #1C9443 #1C3194 #941C6D
split-complementary
#947F1C #1C6D94 #431C94
monochromatic
#2D2709 #615312 #947F1C #C7AB26 #DDC44D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##947F1C#FFFFFF#000000##000000
##947F1C1.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)
#8D7C03
Deuteranopia (green-blind)
#928323
Tritanopia (blue-blind)
#A0746D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #947f1c;
/* rgb */ color: rgb(148, 127, 28);
/* oklch */ color: oklch(59.9% 0.114 96.3);
Tailwind
colors: {
  custom: {
    50: '#b7a362',
    500: '#947f1c',
    950: '#000000',
  },
}
SCSS
$custom: #947f1c;
$custom-light: #b7a362;
$custom-dark: #000000;
JSON
{
  "hex": "#947f1c",
  "rgb": {
    "r": 148,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 49.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59887,
    "c": 0.11412,
    "h": 96.3
  },
  "luminance": 0.21558
}

Semantic roles & 50–950 ramp

primary
#947F1C
secondary
#4C60C0
accent
#5BEB3D
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #947F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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