#AFB457#AFB457

#AFB457 is a light, moderate yellow. Relative luminance 0.424; OKLCH L 74.6% C 0.117 H 111.7°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#AFB457
RGBrgb(175, 180, 87)
HSLhsl(63, 38%, 52%)
HSVhsv(63, 52%, 71%)
CMYKcmyk(2.8%, 0%, 51.7%, 29.4%)
CIE-LABlab(71.18, -14.93, 46.27)
CIE-LCHlch(71.18, 48.62, 107.89°)
OKLaboklab(74.63% -0.0433 0.1089)
OKLCHoklch(74.63% 0.117 111.7)
XYZxyz(35.7215, 42.4453, 15.3260)
Luminance0.4244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB457 #5C57B4
analogous
#B48B57 #AFB457 #80B457
triadic
#AFB457 #57AFB4 #B457AF
tetradic
#AFB457 #57B48B #5C57B4 #B45780
square
#AFB457 #57B48B #5C57B4 #B45780
split-complementary
#AFB457 #5780B4 #8B57B4
monochromatic
#61642D #8A8E40 #AFB457 #C3C781 #D7DAAC

Accessibility & contrast

On white

2.21
#AFB457 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.49
#AFB457 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB457
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB457#FFFFFF#000000##000000
##AFB4571.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AD4E
Deuteranopia (green-blind)
#C0B05C
Tritanopia (blue-blind)
#B9AB9F
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb457;
/* rgb */ color: rgb(175, 180, 87);
/* oklch */ color: oklch(74.6% 0.117 111.7);
Tailwind
colors: {
  custom: {
    50: '#c9ca89',
    500: '#afb457',
    950: '#000000',
  },
}
SCSS
$custom: #afb457;
$custom-light: #c9ca89;
$custom-dark: #000000;
JSON
{
  "hex": "#afb457",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 87
  },
  "hsl": {
    "h": 63.226,
    "s": 38.272,
    "l": 52.353
  },
  "oklch": {
    "l": 0.74634,
    "c": 0.11721,
    "h": 111.7
  },
  "luminance": 0.42445
}

Semantic roles & 50–950 ramp

primary
#AFB457
secondary
#A19FC8
accent
#5ACE60
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB457

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

Preview Lab → · Contrast checker → · Palette generator →

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