#9F8023#9F8023

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

Color values

HEX#9F8023
RGBrgb(159, 128, 35)
HSLhsl(45, 64%, 38%)
HSVhsv(45, 78%, 62%)
CMYKcmyk(0%, 19.5%, 78%, 37.6%)
CIE-LABlab(55.00, 2.44, 51.57)
CIE-LCHlch(55.00, 51.63, 87.29°)
OKLaboklab(61.3% 0.0013 0.1128)
OKLCHoklch(61.3% 0.113 89.3)
XYZxyz(22.3220, 22.9321, 4.8404)
Luminance0.2293 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8023 #23429F
analogous
#9F4223 #9F8023 #809F23
triadic
#9F8023 #239F80 #80239F
tetradic
#9F8023 #239F42 #23429F #9F2380
square
#9F8023 #239F42 #23429F #9F2380
split-complementary
#9F8023 #23809F #42239F
monochromatic
#3B2F0D #6D5818 #9F8023 #D1A82E #DCBD60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8023#FFFFFF#000000##000000
##9F80231.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)
#8F7F12
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#AD746E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f8023;
/* rgb */ color: rgb(159, 128, 35);
/* oklch */ color: oklch(61.3% 0.113 89.3);
Tailwind
colors: {
  custom: {
    50: '#bfa465',
    500: '#9f8023',
    950: '#000000',
  },
}
SCSS
$custom: #9f8023;
$custom-light: #bfa465;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8023",
  "rgb": {
    "r": 159,
    "g": 128,
    "b": 35
  },
  "hsl": {
    "h": 45,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.61303,
    "c": 0.1128,
    "h": 89.3
  },
  "luminance": 0.22931
}

Semantic roles & 50–950 ramp

primary
#9F8023
secondary
#5D76C1
accent
#6AE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8023

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

Preview Lab → · Contrast checker → · Palette generator →

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