#7F681D#7F681D

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

Color values

HEX#7F681D
RGBrgb(127, 104, 29)
HSLhsl(46, 63%, 31%)
HSVhsv(46, 77%, 50%)
CMYKcmyk(0%, 18.1%, 77.2%, 50.2%)
CIE-LABlab(44.94, 0.90, 43.18)
CIE-LCHlch(44.94, 43.19, 88.81°)
OKLaboklab(52.58% -0.0019 0.0952)
OKLCHoklch(52.58% 0.095 91.1)
XYZxyz(13.9253, 14.5022, 3.2279)
Luminance0.1450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F681D #1D347F
analogous
#7F371D #7F681D #657F1D
triadic
#7F681D #1D7F68 #681D7F
tetradic
#7F681D #1D7F37 #1D347F #7F1D65
square
#7F681D #1D7F37 #1D347F #7F1D65
split-complementary
#7F681D #1D657F #371D7F
monochromatic
#1B1606 #4D3F12 #7F681D #B19128 #D4B242

Accessibility & contrast

On white

5.38
#7F681D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F681D
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F681D#FFFFFF#000000##FFFFFF
##7F681D1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746711
Deuteranopia (green-blind)
#7A6D21
Tritanopia (blue-blind)
#8A5F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f681d;
/* rgb */ color: rgb(127, 104, 29);
/* oklch */ color: oklch(52.6% 0.095 91.1);
Tailwind
colors: {
  custom: {
    50: '#a8925f',
    500: '#7f681d',
    950: '#000000',
  },
}
SCSS
$custom: #7f681d;
$custom-light: #a8925f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f681d",
  "rgb": {
    "r": 127,
    "g": 104,
    "b": 29
  },
  "hsl": {
    "h": 45.918,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52577,
    "c": 0.09517,
    "h": 91.1
  },
  "luminance": 0.14501
}

Semantic roles & 50–950 ramp

primary
#7F681D
secondary
#455FB2
accent
#68E642
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D05
muted
#7F7D79

Preview Lab

Preview with #7F681D

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

Preview Lab → · Contrast checker → · Palette generator →

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