#9F7F1C#9F7F1C

#9F7F1C is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 61.0% C 0.116 H 89.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#9F7F1C
RGBrgb(159, 127, 28)
HSLhsl(45, 70%, 37%)
HSVhsv(45, 82%, 62%)
CMYKcmyk(0%, 20.1%, 82.4%, 37.6%)
CIE-LABlab(54.69, 2.73, 53.76)
CIE-LCHlch(54.69, 53.83, 87.09°)
OKLaboklab(61.05% 0.0014 0.116)
OKLCHoklch(61.05% 0.116 89.3)
XYZxyz(22.0984, 22.6350, 4.3035)
Luminance0.2263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F7F1C #1C3C9F
analogous
#9F3E1C #9F7F1C #7D9F1C
triadic
#9F7F1C #1C9F7F #7F1C9F
tetradic
#9F7F1C #1C9F3E #1C3C9F #9F1C7D
square
#9F7F1C #1C9F3E #1C3C9F #9F1C7D
split-complementary
#9F7F1C #1C7D9F #3E1C9F
monochromatic
#372C0A #6B5513 #9F7F1C #D3A925 #E1BF54

Accessibility & contrast

On white

3.80
#9F7F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#9F7F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F7F1C
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F7F1C#FFFFFF#000000##000000
##9F7F1C1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E02
Deuteranopia (green-blind)
#978722
Tritanopia (blue-blind)
#AD736D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9f7f1c;
/* rgb */ color: rgb(159, 127, 28);
/* oklch */ color: oklch(61.0% 0.116 89.3);
Tailwind
colors: {
  custom: {
    50: '#c0a362',
    500: '#9f7f1c',
    950: '#000000',
  },
}
SCSS
$custom: #9f7f1c;
$custom-light: #c0a362;
$custom-dark: #000000;
JSON
{
  "hex": "#9f7f1c",
  "rgb": {
    "r": 159,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 45.344,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61048,
    "c": 0.11596,
    "h": 89.3
  },
  "luminance": 0.22634
}

Semantic roles & 50–950 ramp

primary
#9F7F1C
secondary
#536EC4
accent
#66ED3B
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F7F1C

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

Preview Lab → · Contrast checker → · Palette generator →

#9F7F1C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva