#7C852B#7C852B

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

Color values

HEX#7C852B
RGBrgb(124, 133, 43)
HSLhsl(66, 51%, 35%)
HSVhsv(66, 68%, 52%)
CMYKcmyk(6.8%, 0%, 67.7%, 47.8%)
CIE-LABlab(53.21, -15.84, 45.47)
CIE-LCHlch(53.21, 48.15, 109.20°)
OKLaboklab(59.11% -0.0474 0.1027)
OKLCHoklch(59.11% 0.113 114.8)
XYZxyz(17.1362, 21.2348, 5.4811)
Luminance0.2124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C852B #342B85
analogous
#85612B #7C852B #4F852B
triadic
#7C852B #2B7C85 #852B7C
tetradic
#7C852B #2B8561 #342B85 #852B4F
square
#7C852B #2B8561 #342B85 #852B4F
split-complementary
#7C852B #2B4F85 #612B85
monochromatic
#26290D #51571C #7C852B #A7B33A #C0CB5F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C852B#FFFFFF#000000##000000
##7C852B1.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)
#8F7E1F
Deuteranopia (green-blind)
#8E8031
Tritanopia (blue-blind)
#847D73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7c852b;
/* rgb */ color: rgb(124, 133, 43);
/* oklch */ color: oklch(59.1% 0.113 114.8);
Tailwind
colors: {
  custom: {
    50: '#a4a86a',
    500: '#7c852b',
    950: '#000000',
  },
}
SCSS
$custom: #7c852b;
$custom-light: #a4a86a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c852b",
  "rgb": {
    "r": 124,
    "g": 133,
    "b": 43
  },
  "hsl": {
    "h": 66,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59115,
    "c": 0.11314,
    "h": 114.8
  },
  "luminance": 0.21235
}

Semantic roles & 50–950 ramp

primary
#7C852B
secondary
#635BB1
accent
#4DDB5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C852B

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

Preview Lab → · Contrast checker → · Palette generator →

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