#917F1C#917F1C

#917F1C is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.6% C 0.114 H 98.2°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#917F1C
RGBrgb(145, 127, 28)
HSLhsl(51, 68%, 34%)
HSVhsv(51, 81%, 57%)
CMYKcmyk(0%, 12.4%, 80.7%, 43.1%)
CIE-LABlab(53.26, -3.75, 51.94)
CIE-LCHlch(53.26, 52.07, 94.13°)
OKLaboklab(59.58% -0.0162 0.1128)
OKLCHoklch(59.58% 0.114 98.2)
XYZxyz(19.4770, 21.2833, 4.1806)
Luminance0.2128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#917F1C #1C2E91
analogous
#91451C #917F1C #69911C
triadic
#917F1C #1C917F #7F1C91
tetradic
#917F1C #1C9145 #1C2E91 #911C69
square
#917F1C #1C9145 #1C2E91 #911C69
split-complementary
#917F1C #1C6991 #451C91
monochromatic
#2A2508 #5E5212 #917F1C #C4AC26 #DCC64B

Accessibility & contrast

On white

4.00
#917F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#917F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #917F1C
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##917F1C#FFFFFF#000000##000000
##917F1C1.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C03
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#9D756D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #917f1c;
/* rgb */ color: rgb(145, 127, 28);
/* oklch */ color: oklch(59.6% 0.114 98.2);
Tailwind
colors: {
  custom: {
    50: '#b5a362',
    500: '#917f1c',
    950: '#000000',
  },
}
SCSS
$custom: #917f1c;
$custom-light: #b5a362;
$custom-dark: #000000;
JSON
{
  "hex": "#917f1c",
  "rgb": {
    "r": 145,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 50.769,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59581,
    "c": 0.11394,
    "h": 98.2
  },
  "luminance": 0.21282
}

Semantic roles & 50–950 ramp

primary
#917F1C
secondary
#4A5CBE
accent
#58EB3D
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #917F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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