#798142#798142

#798142 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.2% C 0.087 H 115.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#798142
RGBrgb(121, 129, 66)
HSLhsl(68, 32%, 38%)
HSVhsv(68, 49%, 51%)
CMYKcmyk(6.2%, 0%, 48.8%, 49.4%)
CIE-LABlab(52.02, -13.02, 32.94)
CIE-LCHlch(52.02, 35.42, 111.57°)
OKLaboklab(58.18% -0.0368 0.0787)
OKLCHoklch(58.18% 0.087 115.1)
XYZxyz(16.7190, 20.1590, 8.1635)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798142 #4A4281
analogous
#816942 #798142 #598142
triadic
#798142 #427981 #814279
tetradic
#798142 #428169 #4A4281 #814259
square
#798142 #428169 #4A4281 #814259
split-complementary
#798142 #425981 #694281
monochromatic
#2D3019 #53592D #798142 #9FA957 #B6BE80

Accessibility & contrast

On white

4.17
#798142 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#798142 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798142
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798142#FFFFFF#000000##000000
##7981421.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#897C3D
Deuteranopia (green-blind)
#887D45
Tritanopia (blue-blind)
#7F7B72
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798142;
/* rgb */ color: rgb(121, 129, 66);
/* oklch */ color: oklch(58.2% 0.087 115.1);
Tailwind
colors: {
  custom: {
    50: '#a1a578',
    500: '#798142',
    950: '#000000',
  },
}
SCSS
$custom: #798142;
$custom-light: #a1a578;
$custom-dark: #000000;
JSON
{
  "hex": "#798142",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 66
  },
  "hsl": {
    "h": 67.619,
    "s": 32.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.58181,
    "c": 0.08685,
    "h": 115.1
  },
  "luminance": 0.20159
}

Semantic roles & 50–950 ramp

primary
#798142
secondary
#7D76A9
accent
#5FC86D
background
#FAFAF7
surface
#F3F4ED
border
#CDCEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #798142

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

Preview Lab → · Contrast checker → · Palette generator →

#798142 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva