#AFB348#AFB348

#AFB348 is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.2% C 0.130 H 111.2°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#AFB348
RGBrgb(175, 179, 72)
HSLhsl(62, 43%, 49%)
HSVhsv(62, 60%, 70%)
CMYKcmyk(2.2%, 0%, 59.8%, 29.8%)
CIE-LABlab(70.75, -15.64, 52.73)
CIE-LCHlch(70.75, 55.00, 106.52°)
OKLaboklab(74.24% -0.0469 0.1211)
OKLCHoklch(74.24% 0.13 111.2)
XYZxyz(34.9699, 41.8228, 12.3601)
Luminance0.4182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB348 #4C48B3
analogous
#B38248 #AFB348 #7AB348
triadic
#AFB348 #48AFB3 #B348AF
tetradic
#AFB348 #48B382 #4C48B3 #B3487A
square
#AFB348 #48B382 #4C48B3 #B3487A
split-complementary
#AFB348 #487AB3 #8248B3
monochromatic
#5A5C25 #848736 #AFB348 #C3C672 #D6D89E

Accessibility & contrast

On white

2.24
#AFB348 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#AFB348 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB348
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB348#FFFFFF#000000##000000
##AFB3481.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AC3C
Deuteranopia (green-blind)
#C1AF4E
Tritanopia (blue-blind)
#BAA99C
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb348;
/* rgb */ color: rgb(175, 179, 72);
/* oklch */ color: oklch(74.2% 0.130 111.2);
Tailwind
colors: {
  custom: {
    50: '#c9c97f',
    500: '#afb348',
    950: '#000000',
  },
}
SCSS
$custom: #afb348;
$custom-light: #c9c97f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb348",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 72
  },
  "hsl": {
    "h": 62.243,
    "s": 42.629,
    "l": 49.216
  },
  "oklch": {
    "l": 0.74243,
    "c": 0.12983,
    "h": 111.2
  },
  "luminance": 0.41822
}

Semantic roles & 50–950 ramp

primary
#AFB348
secondary
#9492C4
accent
#55D25A
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130A
muted
#82827C

Preview Lab

Preview with #AFB348

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

Preview Lab → · Contrast checker → · Palette generator →

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