#7C8231#7C8231

#7C8231 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.5% C 0.104 H 113.2°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7C8231
RGBrgb(124, 130, 49)
HSLhsl(64, 45%, 35%)
HSVhsv(64, 62%, 51%)
CMYKcmyk(4.6%, 0%, 62.3%, 49%)
CIE-LABlab(52.37, -13.81, 41.90)
CIE-LCHlch(52.37, 44.11, 108.24°)
OKLaboklab(58.46% -0.0411 0.0961)
OKLCHoklch(58.46% 0.104 113.2)
XYZxyz(16.8496, 20.4724, 5.9691)
Luminance0.2047 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8231 #373182
analogous
#825F31 #7C8231 #548231
triadic
#7C8231 #317C82 #82317C
tetradic
#7C8231 #31825F #373182 #823154
square
#7C8231 #31825F #373182 #823154
split-complementary
#7C8231 #315482 #5F3182
monochromatic
#27290F #525620 #7C8231 #A6AE42 #BFC668

Accessibility & contrast

On white

4.12
#7C8231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#7C8231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8231
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8231#FFFFFF#000000##000000
##7C82311.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C28
Deuteranopia (green-blind)
#8B7E36
Tritanopia (blue-blind)
#847B71
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8231;
/* rgb */ color: rgb(124, 130, 49);
/* oklch */ color: oklch(58.5% 0.104 113.2);
Tailwind
colors: {
  custom: {
    50: '#a4a66d',
    500: '#7c8231',
    950: '#000000',
  },
}
SCSS
$custom: #7c8231;
$custom-light: #a4a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8231",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 64.444,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58461,
    "c": 0.10449,
    "h": 113.2
  },
  "luminance": 0.20472
}

Semantic roles & 50–950 ramp

primary
#7C8231
secondary
#6762AD
accent
#53D55C
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C8231

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

Preview Lab → · Contrast checker → · Palette generator →

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