#7D7815#7D7815

#7D7815 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 56.0% C 0.113 H 106.4°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7D7815
RGBrgb(125, 120, 21)
HSLhsl(57, 71%, 29%)
HSVhsv(57, 83%, 49%)
CMYKcmyk(0%, 4%, 83.2%, 51%)
CIE-LABlab(49.31, -9.46, 49.95)
CIE-LCHlch(49.31, 50.84, 100.73°)
OKLaboklab(55.98% -0.0319 0.108)
OKLCHoklch(55.98% 0.113 106.4)
XYZxyz(15.3099, 17.8476, 3.3478)
Luminance0.1785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7815 #151A7D
analogous
#7D4415 #7D7815 #4E7D15
triadic
#7D7815 #157D78 #78157D
tetradic
#7D7815 #157D44 #151A7D #7D154E
square
#7D7815 #157D44 #151A7D #7D154E
split-complementary
#7D7815 #154E7D #44157D
monochromatic
#1A1904 #49460C #7D7815 #B1AA1E #DCD430

Accessibility & contrast

On white

4.60
#7D7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7D7815 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D7815
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7815#FFFFFF#000000##FFFFFF
##7D78151.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#85771E
Tritanopia (blue-blind)
#876F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d7815;
/* rgb */ color: rgb(125, 120, 21);
/* oklch */ color: oklch(56.0% 0.113 106.4);
Tailwind
colors: {
  custom: {
    50: '#a69e5d',
    500: '#7d7815',
    950: '#000000',
  },
}
SCSS
$custom: #7d7815;
$custom-light: #a69e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7815",
  "rgb": {
    "r": 125,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 57.115,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.55979,
    "c": 0.11264,
    "h": 106.4
  },
  "luminance": 0.17847
}

Semantic roles & 50–950 ramp

primary
#7D7815
secondary
#3C41B2
accent
#42EE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D7815

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

Preview Lab → · Contrast checker → · Palette generator →

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