#9F781B#9F781B

#9F781B is a mid, moderate orange. Relative luminance 0.209; OKLCH L 59.6% C 0.114 H 83.7°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9F781B
RGBrgb(159, 120, 27)
HSLhsl(42, 71%, 36%)
HSVhsv(42, 83%, 62%)
CMYKcmyk(0%, 24.5%, 83%, 37.6%)
CIE-LABlab(52.82, 6.64, 52.45)
CIE-LCHlch(52.82, 52.87, 82.78°)
OKLaboklab(59.58% 0.0125 0.1129)
OKLCHoklch(59.58% 0.114 83.7)
XYZxyz(21.2138, 20.8846, 3.9505)
Luminance0.2088 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F781B #1B429F
analogous
#9F361B #9F781B #849F1B
triadic
#9F781B #1B9F78 #781B9F
tetradic
#9F781B #1B9F36 #1B429F #9F1B84
square
#9F781B #1B9F36 #1B429F #9F1B84
split-complementary
#9F781B #1B849F #361B9F
monochromatic
#362909 #6B5112 #9F781B #D39F24 #E2B753

Accessibility & contrast

On white

4.06
#9F781B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#9F781B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F781B
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F781B#FFFFFF#000000##000000
##9F781B1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897804
Deuteranopia (green-blind)
#928220
Tritanopia (blue-blind)
#AD6C67
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f781b;
/* rgb */ color: rgb(159, 120, 27);
/* oklch */ color: oklch(59.6% 0.114 83.7);
Tailwind
colors: {
  custom: {
    50: '#c09e61',
    500: '#9f781b',
    950: '#000000',
  },
}
SCSS
$custom: #9f781b;
$custom-light: #c09e61;
$custom-dark: #000000;
JSON
{
  "hex": "#9f781b",
  "rgb": {
    "r": 159,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 42.273,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59575,
    "c": 0.11357,
    "h": 83.7
  },
  "luminance": 0.20883
}

Semantic roles & 50–950 ramp

primary
#9F781B
secondary
#5173C5
accent
#6FEE3A
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130E05
muted
#827E7A

Preview Lab

Preview with #9F781B

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

Preview Lab → · Contrast checker → · Palette generator →

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