#AFB254#AFB254

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

Color values

HEX#AFB254
RGBrgb(175, 178, 84)
HSLhsl(62, 38%, 51%)
HSVhsv(62, 53%, 70%)
CMYKcmyk(1.7%, 0%, 52.8%, 30.2%)
CIE-LABlab(70.59, -14.17, 47.02)
CIE-LCHlch(70.59, 49.11, 106.77°)
OKLaboklab(74.16% -0.0415 0.1103)
OKLCHoklch(74.16% 0.118 110.6)
XYZxyz(35.2006, 41.5956, 14.5602)
Luminance0.4159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB254 #5754B2
analogous
#B28654 #AFB254 #80B254
triadic
#AFB254 #54AFB2 #B254AF
tetradic
#AFB254 #54B286 #5754B2 #B25480
square
#AFB254 #54B286 #5754B2 #B25480
split-complementary
#AFB254 #5480B2 #8654B2
monochromatic
#5F602B #888A3E #AFB254 #C3C57E #D6D8A8

Accessibility & contrast

On white

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

On black

9.32
#AFB254 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB254
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB254#FFFFFF#000000##000000
##AFB2541.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAB4B
Deuteranopia (green-blind)
#BFAE59
Tritanopia (blue-blind)
#BAA89D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb254;
/* rgb */ color: rgb(175, 178, 84);
/* oklch */ color: oklch(74.2% 0.118 110.6);
Tailwind
colors: {
  custom: {
    50: '#c9c887',
    500: '#afb254',
    950: '#000000',
  },
}
SCSS
$custom: #afb254;
$custom-light: #c9c887;
$custom-dark: #000000;
JSON
{
  "hex": "#afb254",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 84
  },
  "hsl": {
    "h": 61.915,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.74156,
    "c": 0.11779,
    "h": 110.6
  },
  "luminance": 0.41595
}

Semantic roles & 50–950 ramp

primary
#AFB254
secondary
#9E9CC6
accent
#5ACE5E
background
#FCFCF8
surface
#F9F8F0
border
#D2D1CB
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB254

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

Preview Lab → · Contrast checker → · Palette generator →

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