#7D7023#7D7023

#7D7023 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.097 H 99.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7D7023
RGBrgb(125, 112, 35)
HSLhsl(51, 56%, 31%)
HSVhsv(51, 72%, 49%)
CMYKcmyk(0%, 10.4%, 72%, 51%)
CIE-LABlab(47.07, -4.33, 42.67)
CIE-LCHlch(47.07, 42.89, 95.80°)
OKLaboklab(54.22% -0.016 0.0954)
OKLCHoklch(54.22% 0.097 99.5)
XYZxyz(14.5557, 16.0703, 3.9250)
Luminance0.1607 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7023 #23307D
analogous
#7D4323 #7D7023 #5D7D23
triadic
#7D7023 #237D70 #70237D
tetradic
#7D7023 #237D43 #23307D #7D235D
square
#7D7023 #237D43 #23307D #7D235D
split-complementary
#7D7023 #235D7D #43237D
monochromatic
#1D1A08 #4D4516 #7D7023 #AD9B30 #CDBB4D

Accessibility & contrast

On white

4.98
#7D7023 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7D7023 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D7023
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7023#FFFFFF#000000##FFFFFF
##7D70231.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D18
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#876860
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d7023;
/* rgb */ color: rgb(125, 112, 35);
/* oklch */ color: oklch(54.2% 0.097 99.5);
Tailwind
colors: {
  custom: {
    50: '#a69863',
    500: '#7d7023',
    950: '#000000',
  },
}
SCSS
$custom: #7d7023;
$custom-light: #a69863;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7023",
  "rgb": {
    "r": 125,
    "g": 112,
    "b": 35
  },
  "hsl": {
    "h": 51.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54221,
    "c": 0.09669,
    "h": 99.5
  },
  "luminance": 0.1607
}

Semantic roles & 50–950 ramp

primary
#7D7023
secondary
#4C5BAF
accent
#5EE048
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D05
muted
#7F7E7A

Preview Lab

Preview with #7D7023

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

Preview Lab → · Contrast checker → · Palette generator →

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