#7F681B#7F681B

#7F681B is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.6% C 0.096 H 91.4°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F681B
RGBrgb(127, 104, 27)
HSLhsl(46, 65%, 30%)
HSVhsv(46, 79%, 50%)
CMYKcmyk(0%, 18.1%, 78.7%, 50.2%)
CIE-LABlab(44.93, 0.80, 43.97)
CIE-LCHlch(44.93, 43.98, 88.96°)
OKLaboklab(52.56% -0.0024 0.0964)
OKLCHoklch(52.56% 0.096 91.4)
XYZxyz(13.9013, 14.4926, 3.1019)
Luminance0.1449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F681B #1B327F
analogous
#7F361B #7F681B #647F1B
triadic
#7F681B #1B7F68 #681B7F
tetradic
#7F681B #1B7F36 #1B327F #7F1B64
square
#7F681B #1B7F36 #1B327F #7F1B64
split-complementary
#7F681B #1B647F #361B7F
monochromatic
#1A1506 #4D3F10 #7F681B #B19126 #D6B33E

Accessibility & contrast

On white

5.39
#7F681B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7F681B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F681B
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F681B#FFFFFF#000000##FFFFFF
##7F681B1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74660D
Deuteranopia (green-blind)
#7A6D1F
Tritanopia (blue-blind)
#8A5F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f681b;
/* rgb */ color: rgb(127, 104, 27);
/* oklch */ color: oklch(52.6% 0.096 91.4);
Tailwind
colors: {
  custom: {
    50: '#a8925e',
    500: '#7f681b',
    950: '#000000',
  },
}
SCSS
$custom: #7f681b;
$custom-light: #a8925e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f681b",
  "rgb": {
    "r": 127,
    "g": 104,
    "b": 27
  },
  "hsl": {
    "h": 46.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52562,
    "c": 0.09643,
    "h": 91.4
  },
  "luminance": 0.14492
}

Semantic roles & 50–950 ramp

primary
#7F681B
secondary
#435DB3
accent
#67E840
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D05
muted
#7F7D79

Preview Lab

Preview with #7F681B

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

Preview Lab → · Contrast checker → · Palette generator →

#7F681B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva