#AFA254#AFA254

#AFA254 is a light, moderate yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.101 H 100.0°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA254
RGBrgb(175, 162, 84)
HSLhsl(51, 36%, 51%)
HSVhsv(51, 52%, 69%)
CMYKcmyk(0%, 7.4%, 52%, 31.4%)
CIE-LABlab(66.21, -5.79, 41.86)
CIE-LCHlch(66.21, 42.26, 97.88°)
OKLaboklab(70.67% -0.0175 0.099)
OKLCHoklch(70.67% 0.101 100)
XYZxyz(32.2008, 35.5959, 13.5603)
Luminance0.3559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA254 #5461AF
analogous
#AF7454 #AFA254 #8EAF54
triadic
#AFA254 #54AFA2 #A254AF
tetradic
#AFA254 #54AF74 #5461AF #AF548E
square
#AFA254 #54AF74 #5461AF #AF548E
split-complementary
#AFA254 #548EAF #7454AF
monochromatic
#5D562C #877D3F #AFA254 #C3B97E #D6CFA7

Accessibility & contrast

On white

2.59
#AFA254 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#AFA254 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA254
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA254#FFFFFF#000000##000000
##AFA2541.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E4D
Deuteranopia (green-blind)
#B3A357
Tritanopia (blue-blind)
#BB9890
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa254;
/* rgb */ color: rgb(175, 162, 84);
/* oklch */ color: oklch(70.7% 0.101 100.0);
Tailwind
colors: {
  custom: {
    50: '#c9bd86',
    500: '#afa254',
    950: '#000000',
  },
}
SCSS
$custom: #afa254;
$custom-light: #c9bd86;
$custom-dark: #000000;
JSON
{
  "hex": "#afa254",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 84
  },
  "hsl": {
    "h": 51.429,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.70672,
    "c": 0.10057,
    "h": 100
  },
  "luminance": 0.35595
}

Semantic roles & 50–950 ramp

primary
#AFA254
secondary
#9BA1C4
accent
#6CCC5C
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA254

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

Preview Lab → · Contrast checker → · Palette generator →

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