#AFB257#AFB257

#AFB257 is a light, moderate yellow. Relative luminance 0.416; OKLCH L 74.2% C 0.115 H 110.6°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#AFB257
RGBrgb(175, 178, 87)
HSLhsl(62, 37%, 52%)
HSVhsv(62, 51%, 70%)
CMYKcmyk(1.7%, 0%, 51.1%, 30.2%)
CIE-LABlab(70.62, -13.91, 45.62)
CIE-LCHlch(70.62, 47.69, 106.96°)
OKLaboklab(74.19% -0.0404 0.1075)
OKLCHoklch(74.19% 0.115 110.6)
XYZxyz(35.3206, 41.6436, 15.1924)
Luminance0.4164 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB257 #5A57B2
analogous
#B28857 #AFB257 #82B257
triadic
#AFB257 #57AFB2 #B257AF
tetradic
#AFB257 #57B288 #5A57B2 #B25782
square
#AFB257 #57B288 #5A57B2 #B25782
split-complementary
#AFB257 #5782B2 #8857B2
monochromatic
#60622D #898C40 #AFB257 #C3C581 #D7D8AB

Accessibility & contrast

On white

2.25
#AFB257 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#AFB257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB257
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB257#FFFFFF#000000##000000
##AFB2571.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAB4E
Deuteranopia (green-blind)
#BFAE5C
Tritanopia (blue-blind)
#B9A99D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb257;
/* rgb */ color: rgb(175, 178, 87);
/* oklch */ color: oklch(74.2% 0.115 110.6);
Tailwind
colors: {
  custom: {
    50: '#c9c889',
    500: '#afb257',
    950: '#000000',
  },
}
SCSS
$custom: #afb257;
$custom-light: #c9c889;
$custom-dark: #000000;
JSON
{
  "hex": "#afb257",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 87
  },
  "hsl": {
    "h": 61.978,
    "s": 37.143,
    "l": 51.961
  },
  "oklch": {
    "l": 0.74193,
    "c": 0.11485,
    "h": 110.6
  },
  "luminance": 0.41643
}

Semantic roles & 50–950 ramp

primary
#AFB257
secondary
#A09EC6
accent
#5BCD5E
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB257

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

Preview Lab → · Contrast checker → · Palette generator →

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