#798239#798239

#798239 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.3% C 0.098 H 115.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#798239
RGBrgb(121, 130, 57)
HSLhsl(67, 39%, 37%)
HSVhsv(67, 56%, 51%)
CMYKcmyk(6.9%, 0%, 56.2%, 49%)
CIE-LABlab(52.20, -14.46, 37.78)
CIE-LCHlch(52.20, 40.46, 110.94°)
OKLaboklab(58.29% -0.0418 0.0884)
OKLCHoklch(58.29% 0.098 115.3)
XYZxyz(16.6066, 20.3258, 6.9186)
Luminance0.2033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798239 #423982
analogous
#826739 #798239 #558239
triadic
#798239 #397982 #823979
tetradic
#798239 #398267 #423982 #823955
square
#798239 #398267 #423982 #823955
split-complementary
#798239 #395582 #673982
monochromatic
#2A2D14 #515726 #798239 #A1AD4C #B8C274

Accessibility & contrast

On white

4.15
#798239 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#798239 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798239
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798239#FFFFFF#000000##000000
##7982391.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7C32
Deuteranopia (green-blind)
#8A7D3D
Tritanopia (blue-blind)
#807B72
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798239;
/* rgb */ color: rgb(121, 130, 57);
/* oklch */ color: oklch(58.3% 0.098 115.3);
Tailwind
colors: {
  custom: {
    50: '#a1a672',
    500: '#798239',
    950: '#000000',
  },
}
SCSS
$custom: #798239;
$custom-light: #a1a672;
$custom-dark: #000000;
JSON
{
  "hex": "#798239",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 57
  },
  "hsl": {
    "h": 67.397,
    "s": 39.037,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58295,
    "c": 0.09777,
    "h": 115.3
  },
  "luminance": 0.20326
}

Semantic roles & 50–950 ramp

primary
#798239
secondary
#746CAB
accent
#59CF67
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #798239

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

Preview Lab → · Contrast checker → · Palette generator →

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