#7D8522#7D8522

#7D8522 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.1% C 0.119 H 114.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7D8522
RGBrgb(125, 133, 34)
HSLhsl(65, 59%, 33%)
HSVhsv(65, 74%, 52%)
CMYKcmyk(6%, 0%, 74.4%, 47.8%)
CIE-LABlab(53.22, -15.92, 49.13)
CIE-LCHlch(53.22, 51.65, 107.96°)
OKLaboklab(59.13% -0.0487 0.1088)
OKLCHoklch(59.13% 0.119 114.1)
XYZxyz(17.1342, 21.2509, 4.7123)
Luminance0.2125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8522 #2A2285
analogous
#855B22 #7D8522 #4C8522
triadic
#7D8522 #227D85 #85227D
tetradic
#7D8522 #22855B #2A2285 #85224C
square
#7D8522 #22855B #2A2285 #85224C
split-complementary
#7D8522 #224C85 #5B2285
monochromatic
#212409 #4F5416 #7D8522 #ABB62E #C8D24F

Accessibility & contrast

On white

4.00
#7D8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#7D8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8522
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8522#FFFFFF#000000##000000
##7D85221.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0F
Deuteranopia (green-blind)
#8F802A
Tritanopia (blue-blind)
#867D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7d8522;
/* rgb */ color: rgb(125, 133, 34);
/* oklch */ color: oklch(59.1% 0.119 114.1);
Tailwind
colors: {
  custom: {
    50: '#a6a865',
    500: '#7d8522',
    950: '#000000',
  },
}
SCSS
$custom: #7d8522;
$custom-light: #a6a865;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8522",
  "rgb": {
    "r": 125,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 64.848,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59129,
    "c": 0.11921,
    "h": 114.1
  },
  "luminance": 0.21251
}

Semantic roles & 50–950 ramp

primary
#7D8522
secondary
#564DB6
accent
#45E252
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8522

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

Preview Lab → · Contrast checker → · Palette generator →

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