#798248#798248

#798248 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.5% C 0.081 H 116.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#798248
RGBrgb(121, 130, 72)
HSLhsl(69, 29%, 40%)
HSVhsv(69, 45%, 51%)
CMYKcmyk(6.9%, 0%, 44.6%, 49%)
CIE-LABlab(52.40, -12.89, 30.20)
CIE-LCHlch(52.40, 32.83, 113.11°)
OKLaboklab(58.51% -0.0359 0.073)
OKLCHoklch(58.51% 0.081 116.2)
XYZxyz(17.0376, 20.4983, 9.1886)
Luminance0.2050 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798248 #514882
analogous
#826E48 #798248 #5C8248
triadic
#798248 #487982 #824879
tetradic
#798248 #48826E #514882 #82485C
square
#798248 #48826E #514882 #82485C
split-complementary
#798248 #485C82 #6E4882
monochromatic
#30331C #545B32 #798248 #9CA760 #B5BD88

Accessibility & contrast

On white

4.12
#798248 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#798248 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798248
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798248#FFFFFF#000000##000000
##7982481.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897D43
Deuteranopia (green-blind)
#887D4B
Tritanopia (blue-blind)
#7F7C74
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798248;
/* rgb */ color: rgb(121, 130, 72);
/* oklch */ color: oklch(58.5% 0.081 116.2);
Tailwind
colors: {
  custom: {
    50: '#a1a67c',
    500: '#798248',
    950: '#000000',
  },
}
SCSS
$custom: #798248;
$custom-light: #a1a67c;
$custom-dark: #000000;
JSON
{
  "hex": "#798248",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 72
  },
  "hsl": {
    "h": 69.31,
    "s": 28.713,
    "l": 39.608
  },
  "oklch": {
    "l": 0.58511,
    "c": 0.08135,
    "h": 116.2
  },
  "luminance": 0.20498
}

Semantic roles & 50–950 ramp

primary
#798248
secondary
#847DA9
accent
#63C572
background
#FAFAF7
surface
#F3F4EE
border
#CDCEC9
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #798248

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

Preview Lab → · Contrast checker → · Palette generator →

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