#7C8331#7C8331

#7C8331 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.7% C 0.106 H 113.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7C8331
RGBrgb(124, 131, 49)
HSLhsl(65, 46%, 35%)
HSVhsv(65, 63%, 51%)
CMYKcmyk(5.3%, 0%, 62.6%, 48.6%)
CIE-LABlab(52.66, -14.34, 42.22)
CIE-LCHlch(52.66, 44.59, 108.76°)
OKLaboklab(58.7% -0.0426 0.0968)
OKLCHoklch(58.7% 0.106 113.8)
XYZxyz(16.9833, 20.7397, 6.0136)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8331 #383183
analogous
#836131 #7C8331 #538331
triadic
#7C8331 #317C83 #83317C
tetradic
#7C8331 #318361 #383183 #833153
square
#7C8331 #318361 #383183 #833153
split-complementary
#7C8331 #315383 #613183
monochromatic
#282A10 #525620 #7C8331 #A6B042 #BEC668

Accessibility & contrast

On white

4.08
#7C8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#7C8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8331
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8331#FFFFFF#000000##000000
##7C83311.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D27
Deuteranopia (green-blind)
#8C7F36
Tritanopia (blue-blind)
#847C72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7c8331;
/* rgb */ color: rgb(124, 131, 49);
/* oklch */ color: oklch(58.7% 0.106 113.8);
Tailwind
colors: {
  custom: {
    50: '#a4a66d',
    500: '#7c8331',
    950: '#000000',
  },
}
SCSS
$custom: #7c8331;
$custom-light: #a4a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8331",
  "rgb": {
    "r": 124,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 65.122,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58698,
    "c": 0.10571,
    "h": 113.8
  },
  "luminance": 0.20739
}

Semantic roles & 50–950 ramp

primary
#7C8331
secondary
#6862AE
accent
#53D55E
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C8331

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

Preview Lab → · Contrast checker → · Palette generator →

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