#AFB252#AFB252

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

Color values

HEX#AFB252
RGBrgb(175, 178, 82)
HSLhsl(62, 38%, 51%)
HSVhsv(62, 54%, 70%)
CMYKcmyk(1.7%, 0%, 53.9%, 30.2%)
CIE-LABlab(70.57, -14.34, 47.95)
CIE-LCHlch(70.57, 50.04, 106.65°)
OKLaboklab(74.13% -0.0422 0.112)
OKLCHoklch(74.13% 0.12 110.6)
XYZxyz(35.1234, 41.5647, 14.1536)
Luminance0.4156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB252 #5552B2
analogous
#B28552 #AFB252 #7FB252
triadic
#AFB252 #52AFB2 #B252AF
tetradic
#AFB252 #52B285 #5552B2 #B2527F
square
#AFB252 #52B285 #5552B2 #B2527F
split-complementary
#AFB252 #527FB2 #8552B2
monochromatic
#5E5F2A #878A3D #AFB252 #C3C57C #D6D8A7

Accessibility & contrast

On white

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

On black

9.31
#AFB252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB252
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB252#FFFFFF#000000##000000
##AFB2521.002.259.319.31
#FFFFFF2.251.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb252;
/* rgb */ color: rgb(175, 178, 82);
/* oklch */ color: oklch(74.1% 0.120 110.6);
Tailwind
colors: {
  custom: {
    50: '#c9c886',
    500: '#afb252',
    950: '#000000',
  },
}
SCSS
$custom: #afb252;
$custom-light: #c9c886;
$custom-dark: #000000;
JSON
{
  "hex": "#afb252",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 61.875,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.74132,
    "c": 0.1197,
    "h": 110.6
  },
  "luminance": 0.41564
}

Semantic roles & 50–950 ramp

primary
#AFB252
secondary
#9C9BC5
accent
#59CE5D
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB252

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

Preview Lab → · Contrast checker → · Palette generator →

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