#7D7227#7D7227

#7D7227 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.7% C 0.095 H 100.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7D7227
RGBrgb(125, 114, 39)
HSLhsl(52, 52%, 32%)
HSVhsv(52, 69%, 49%)
CMYKcmyk(0%, 8.8%, 68.8%, 51%)
CIE-LABlab(47.68, -5.22, 41.52)
CIE-LCHlch(47.68, 41.85, 97.17°)
OKLaboklab(54.72% -0.018 0.0937)
OKLCHoklch(54.72% 0.095 100.9)
XYZxyz(14.8416, 16.5417, 4.3302)
Luminance0.1654 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7227 #27327D
analogous
#7D4727 #7D7227 #5D7D27
triadic
#7D7227 #277D72 #72277D
tetradic
#7D7227 #277D47 #27327D #7D275D
square
#7D7227 #277D47 #27327D #7D275D
split-complementary
#7D7227 #275D7D #47277D
monochromatic
#201D0A #4E4718 #7D7227 #AC9D36 #CABB55

Accessibility & contrast

On white

4.87
#7D7227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7D7227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D7227
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7227#FFFFFF#000000##FFFFFF
##7D72271.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1D
Deuteranopia (green-blind)
#80732B
Tritanopia (blue-blind)
#876A63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7d7227;
/* rgb */ color: rgb(125, 114, 39);
/* oklch */ color: oklch(54.7% 0.095 100.9);
Tailwind
colors: {
  custom: {
    50: '#a59a65',
    500: '#7d7227',
    950: '#000000',
  },
}
SCSS
$custom: #7d7227;
$custom-light: #a59a65;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7227",
  "rgb": {
    "r": 125,
    "g": 114,
    "b": 39
  },
  "hsl": {
    "h": 52.326,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54716,
    "c": 0.09539,
    "h": 100.9
  },
  "luminance": 0.16541
}

Semantic roles & 50–950 ramp

primary
#7D7227
secondary
#515DAF
accent
#5EDC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7D7227

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

Preview Lab → · Contrast checker → · Palette generator →

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