#7D681B#7D681B

#7D681B is a mid, moderate yellow. Relative luminance 0.143; OKLCH L 52.3% C 0.096 H 93.0°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7D681B
RGBrgb(125, 104, 27)
HSLhsl(47, 64%, 30%)
HSVhsv(47, 78%, 49%)
CMYKcmyk(0%, 16.8%, 78.4%, 51%)
CIE-LABlab(44.72, -0.15, 43.69)
CIE-LCHlch(44.72, 43.69, 90.20°)
OKLaboklab(52.34% -0.005 0.0959)
OKLCHoklch(52.34% 0.096 93)
XYZxyz(13.6063, 14.3405, 3.0880)
Luminance0.1434 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D681B #1B307D
analogous
#7D371B #7D681B #617D1B
triadic
#7D681B #1B7D68 #681B7D
tetradic
#7D681B #1B7D37 #1B307D #7D1B61
square
#7D681B #1B7D37 #1B307D #7D1B61
split-complementary
#7D681B #1B617D #371B7D
monochromatic
#191505 #4B3E10 #7D681B #AF9226 #D5B53D

Accessibility & contrast

On white

5.43
#7D681B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7D681B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D681B
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D681B#FFFFFF#000000##FFFFFF
##7D681B1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74660D
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#885F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7d681b;
/* rgb */ color: rgb(125, 104, 27);
/* oklch */ color: oklch(52.3% 0.096 93.0);
Tailwind
colors: {
  custom: {
    50: '#a6925e',
    500: '#7d681b',
    950: '#000000',
  },
}
SCSS
$custom: #7d681b;
$custom-light: #a6925e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d681b",
  "rgb": {
    "r": 125,
    "g": 104,
    "b": 27
  },
  "hsl": {
    "h": 47.143,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52344,
    "c": 0.09603,
    "h": 93
  },
  "luminance": 0.1434
}

Semantic roles & 50–950 ramp

primary
#7D681B
secondary
#435AB1
accent
#64E740
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D05
muted
#7F7D79

Preview Lab

Preview with #7D681B

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

Preview Lab → · Contrast checker → · Palette generator →

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