#9F8022#9F8022

#9F8022 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.3% C 0.113 H 89.5°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9F8022
RGBrgb(159, 128, 34)
HSLhsl(45, 65%, 38%)
HSVhsv(45, 79%, 62%)
CMYKcmyk(0%, 19.5%, 78.6%, 37.6%)
CIE-LABlab(55.00, 2.40, 51.94)
CIE-LCHlch(55.00, 51.99, 87.35°)
OKLaboklab(61.3% 0.0011 0.1134)
OKLCHoklch(61.3% 0.113 89.5)
XYZxyz(22.3073, 22.9262, 4.7633)
Luminance0.2293 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8022 #22419F
analogous
#9F4122 #9F8022 #7F9F22
triadic
#9F8022 #229F80 #80229F
tetradic
#9F8022 #229F41 #22419F #9F227F
square
#9F8022 #229F41 #22419F #9F227F
split-complementary
#9F8022 #227F9F #41229F
monochromatic
#3A2F0C #6D5717 #9F8022 #D1A92D #DDBD5F

Accessibility & contrast

On white

3.76
#9F8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#9F8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8022
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8022#FFFFFF#000000##000000
##9F80221.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F10
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#AD746E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f8022;
/* rgb */ color: rgb(159, 128, 34);
/* oklch */ color: oklch(61.3% 0.113 89.5);
Tailwind
colors: {
  custom: {
    50: '#c0a465',
    500: '#9f8022',
    950: '#000000',
  },
}
SCSS
$custom: #9f8022;
$custom-light: #c0a465;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8022",
  "rgb": {
    "r": 159,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 45.12,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.61297,
    "c": 0.11337,
    "h": 89.5
  },
  "luminance": 0.22925
}

Semantic roles & 50–950 ramp

primary
#9F8022
secondary
#5B75C1
accent
#6AE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8022

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

Preview Lab → · Contrast checker → · Palette generator →

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