#9D8F1C#9D8F1C

#9D8F1C is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.3% C 0.127 H 101.9°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9D8F1C
RGBrgb(157, 143, 28)
HSLhsl(53, 70%, 36%)
HSVhsv(53, 82%, 62%)
CMYKcmyk(0%, 8.9%, 82.2%, 38.4%)
CIE-LABlab(58.88, -7.00, 57.34)
CIE-LCHlch(58.88, 57.77, 96.96°)
OKLaboklab(64.31% -0.026 0.1238)
OKLCHoklch(64.31% 0.127 101.9)
XYZxyz(23.9379, 26.8980, 5.0293)
Luminance0.2690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F1C #1C2A9D
analogous
#9D4F1C #9D8F1C #6B9D1C
triadic
#9D8F1C #1C9D8F #8F1C9D
tetradic
#9D8F1C #1C9D4F #1C2A9D #9D1C6B
square
#9D8F1C #1C9D4F #1C2A9D #9D1C6B
split-complementary
#9D8F1C #1C6B9D #4F1C9D
monochromatic
#353009 #696013 #9D8F1C #D1BE25 #E0D153

Accessibility & contrast

On white

3.29
#9D8F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#9D8F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F1C
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F1C#FFFFFF#000000##000000
##9D8F1C1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#A19026
Tritanopia (blue-blind)
#AA847A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f1c;
/* rgb */ color: rgb(157, 143, 28);
/* oklch */ color: oklch(64.3% 0.127 101.9);
Tailwind
colors: {
  custom: {
    50: '#beaf64',
    500: '#9d8f1c',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f1c;
$custom-light: #beaf64;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f1c",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 53.488,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64314,
    "c": 0.12653,
    "h": 101.9
  },
  "luminance": 0.26897
}

Semantic roles & 50–950 ramp

primary
#9D8F1C
secondary
#515EC3
accent
#4FED3B
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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