#AFA758#AFA758

#AFA758 is a light, moderate yellow. Relative luminance 0.375; OKLCH L 71.8% C 0.102 H 103.5°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#AFA758
RGBrgb(175, 167, 88)
HSLhsl(54, 35%, 52%)
HSVhsv(54, 50%, 69%)
CMYKcmyk(0%, 4.6%, 49.7%, 31.4%)
CIE-LABlab(67.62, -8.08, 41.55)
CIE-LCHlch(67.62, 42.33, 101.01°)
OKLaboklab(71.8% -0.0236 0.0987)
OKLCHoklch(71.8% 0.102 103.5)
XYZxyz(33.2602, 37.4570, 14.7085)
Luminance0.3746 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA758 #5860AF
analogous
#AF7C58 #AFA758 #8CAF58
triadic
#AFA758 #58AFA7 #A758AF
tetradic
#AFA758 #58AF7C #5860AF #AF588C
square
#AFA758 #58AF7C #5860AF #AF588C
split-complementary
#AFA758 #588CAF #7C58AF
monochromatic
#5F5B2E #888241 #AFA758 #C3BD81 #D7D3AB

Accessibility & contrast

On white

2.47
#AFA758 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#AFA758 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA758
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA758#FFFFFF#000000##000000
##AFA7581.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A251
Deuteranopia (green-blind)
#B6A75C
Tritanopia (blue-blind)
#BA9E95
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa758;
/* rgb */ color: rgb(175, 167, 88);
/* oklch */ color: oklch(71.8% 0.102 103.5);
Tailwind
colors: {
  custom: {
    50: '#c9c189',
    500: '#afa758',
    950: '#000000',
  },
}
SCSS
$custom: #afa758;
$custom-light: #c9c189;
$custom-dark: #000000;
JSON
{
  "hex": "#afa758",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 88
  },
  "hsl": {
    "h": 54.483,
    "s": 35.223,
    "l": 51.569
  },
  "oklch": {
    "l": 0.71805,
    "c": 0.1015,
    "h": 103.5
  },
  "luminance": 0.37456
}

Semantic roles & 50–950 ramp

primary
#AFA758
secondary
#9EA2C5
accent
#67CB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA758

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

Preview Lab → · Contrast checker → · Palette generator →

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