#7D661B#7D661B

#7D661B is a mid, moderate yellow. Relative luminance 0.139; OKLCH L 51.9% C 0.095 H 91.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7D661B
RGBrgb(125, 102, 27)
HSLhsl(46, 64%, 30%)
HSVhsv(46, 78%, 49%)
CMYKcmyk(0%, 18.4%, 78.4%, 51%)
CIE-LABlab(44.15, 1.01, 43.16)
CIE-LCHlch(44.15, 43.17, 88.66°)
OKLaboklab(51.9% -0.0017 0.0948)
OKLCHoklch(51.9% 0.095 91)
XYZxyz(13.4074, 13.9427, 3.0217)
Luminance0.1394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D661B #1B327D
analogous
#7D351B #7D661B #637D1B
triadic
#7D661B #1B7D66 #661B7D
tetradic
#7D661B #1B7D35 #1B327D #7D1B63
square
#7D661B #1B7D35 #1B327D #7D1B63
split-complementary
#7D661B #1B637D #351B7D
monochromatic
#191505 #4B3D10 #7D661B #AF8F26 #D5B13D

Accessibility & contrast

On white

5.54
#7D661B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7D661B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D661B
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D661B#FFFFFF#000000##FFFFFF
##7D661B1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72650E
Deuteranopia (green-blind)
#786B1F
Tritanopia (blue-blind)
#885D57
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7d661b;
/* rgb */ color: rgb(125, 102, 27);
/* oklch */ color: oklch(51.9% 0.095 91.0);
Tailwind
colors: {
  custom: {
    50: '#a6915d',
    500: '#7d661b',
    950: '#000000',
  },
}
SCSS
$custom: #7d661b;
$custom-light: #a6915d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d661b",
  "rgb": {
    "r": 125,
    "g": 102,
    "b": 27
  },
  "hsl": {
    "h": 45.918,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51896,
    "c": 0.09478,
    "h": 91
  },
  "luminance": 0.13942
}

Semantic roles & 50–950 ramp

primary
#7D661B
secondary
#435DB1
accent
#68E740
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7D661B

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

Preview Lab → · Contrast checker → · Palette generator →

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